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

Pitbul: Brian's strategy automated
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=328
Page 19 of 19
Author:  falsedave [ Mon Oct 01, 2012 2:54 pm ]
Post subject:  Re: Pitbul: Brian's strategy automated

I think I have fixed the problem with not trading on TF less than 1H.

I noted out a while loop in the int Start() routine

Code: Select all

//while (x == 0)
   //{
And it seems to work. I cant see the reason why it works but it does. I have been running it most of the day with RelativeMinutes=15 and TradingTimeFrame=1;and it seems to work.

Due to my non existant coding skills it might be a good idea if Steve or someone could look at it and just confirm that I have not completely cocked up his code by doing this.
Author:  falsedave [ Sun Oct 07, 2012 2:15 pm ]
Post subject:  Re: Pitbul: Brian's strategy automated

Just like to confirm that the loop is there for a good reason.

With the loop noted out it will only calculate the levels when a tick is received on that chart. Whereas with the loop left in it runs on a constant loop recalculating the levels as soon as a tick is received on any of the trading pairs.
So whilst it does work it is not ideal its is more of a bodge than a fix.
All times are UTC Page 19 of 19