Pitbul: Brian's strategy automated

Post Reply
falsedave
Trader
Posts: 53
Joined: Sun Aug 26, 2012 5:00 pm

Re: Pitbul: Brian's strategy automated

Post by falsedave »

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.
Image
Image
falsedave
Trader
Posts: 53
Joined: Sun Aug 26, 2012 5:00 pm

Re: Pitbul: Brian's strategy automated

Post by falsedave »

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.
Image
Image
Post Reply

Return to “Automated trading systems”