stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

PIT BULL TRADER Indicators
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=321
Page 12 of 12
Author:  lucklogic [ Sat Apr 27, 2013 6:29 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

gaheitman wrote:
lucklogic wrote:Hi, and thank you for sharing this great indicator :D

Sorry to bother you but I wonder if you could modify your indicator to show the value of the net profit or loss over the lookback time period selected.

I'm interested in T101 Basket trading and it seems to be that this could be a v.useful main trend indicator for the fourteen pairs that are traded.

EG if the time frame was set to 15M then the indicator would report the net Profit or Loss at each bar close for the net basket position within the selected lookback period and draw the result as a graph in an indicator window

Many thanks in anticipation of your help and assistance :ugeek:
Have you looked at the BasketEquity Indicator posted here? http://www.stevehopwoodforex.com/phpBB3 ... 855#p27855

George
Wow that's great, thank you v.much. I did have a bit of trouble making it go until I found this advice from yourself;

You should have this:
int RegisterWindowMessageA(string lpString);
within the #import "user32.dll" tags.
Author:  lucklogic [ Sat Apr 27, 2013 7:02 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

George pls have a look at my attached chart

I have compared the net profit by the two indicators but the end result is not similar

Basket Equity reports a loss of - $22 but the SHF PitBull indicator v2.1 reports -$47

Why are they not the same ? :roll:

Is Basket Equity value correct ?

Many thanks for your help and assistance :ugeek:
Author:  gaheitman [ Sat Apr 27, 2013 8:27 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

lucklogic wrote:George pls have a look at my attached chart

I have compared the net profit by the two indicators but the end result is not similar

Basket Equity reports a loss of - $22 but the SHF PitBull indicator v2.1 reports -$47

Why are they not the same ? :roll:

Is Basket Equity value correct ?

Many thanks for your help and assistance :ugeek:
The BasketEquity indicator uses the close of the reference bar as the open price of the trade and the pitbull indicator uses the open of the reference bar. Do you have the periodGranularity in BasketEquity set to 1? Normally it is 1, which would match the data that Pitbull is looking at (M1 data). If you change it to something else, it will further exaggerate the difference between open/close prices.

George
Author:  lucklogic [ Sun Apr 28, 2013 8:16 am ]
Post subject:  Re: PIT BULL TRADER Indicators

Please see the attached chart for the last 24 hrs with a M5 timeframe plotted for 500 bars
The Basket Equity reports - $9 against -$29 from the Pitbull indicator

Confirm same lot size (0.01)
Confirm same data set

Buy="USDCHF,EURGBP,NZDUSD,GBPUSD,EURJPY,AUDJPY,GBPJPY";
Sell="AUDUSD,EURUSD,NZDJPY,GBPCHF,CHFJPY,EURCHF,USDJPY ";

:ugeek:
Author:  gaheitman [ Sun Apr 28, 2013 12:51 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

Curious. I did the same thing and Pitbull came up with -9.74 and BE got -9.47. I did notice in your cut and paste of the pairs that you had an extra space at the end of the sell list. I don't know if the parser code will choke on the space, but worth looking at.

George
Author:  lucklogic [ Sun Apr 28, 2013 1:35 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

gaheitman wrote:Curious. I did the same thing and Pitbull came up with -9.74 and BE got -9.47. I did notice in your cut and paste of the pairs that you had an extra space at the end of the sell list. I don't know if the parser code will choke on the space, but worth looking at.

George

Thank you for your assistance, and you are quite right the missed space at the end of the data set was important!

Now that I'm testing during market open hours both indicators are in accord. Brilliant :D
Thanks again :ugeek:
All times are UTC Page 12 of 12