| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Best Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3566 |
Page 5 of 8 |
| Author: | phil_trade [ Mon May 05, 2014 11:15 am ] |
| Post subject: | Best Bob |
Steve "Most people go ootb and the magics are different by default" -> Between Trade and CT trade but are equal for each SYMBOL ! More, the last bug I found in BOB EA in Close Procedure was a bad Ticket Number / Symbol association that was corrected by adding an OrderSelect(). |
|
| Author: | phil_trade [ Thu May 08, 2014 8:53 am ] |
| Post subject: | Best Bob |
Hi Steve In LookForTradeClosure routine the test if (CloseEnough(DailyStochMain, 0)) in the same for SELL and BUY trades ? is this abug as for sell it should be if (CloseEnough(DailyStochMain, 100)) ? Code: Select all |
|
| Author: | phil_trade [ Thu May 08, 2014 9:47 am ] |
| Post subject: | Best Bob |
With BreakEven allowed I have bug alert : Invalid Stop Loss cause GBPJPY wants to Move SL of EUCAD trade .... just stop this with : but it seems there's a mess in Symbol and/or Trade management : Code: Select all |
|
| Author: | SteveHopwood [ Thu May 08, 2014 10:44 am ] |
| Post subject: | Best Bob |
You are dead right here Not even a hint of a clue how that happened folks, but somehow I managed to upload a faulty version. V 1b is in post 1 with the fix. CT trading turned back on by default, so let's see if the trades open and close properly now. |
|
| Author: | phil_trade [ Thu May 08, 2014 11:54 am ] |
| Post subject: | Best Bob |
Steve I think I have found the problem with this example above. The problem occur when a new GBPJPY trade was generated. the Chart GBPJPY try to modify an EURCAD trade and calculate a wrong SL value. I guess that the problem come that BOB EA is a single Symbol EA and we run it on multiple charts. When one chart is in CountOpenTrades() module, and another chart add or close a trade, then the loop Code: Select all and this problem could occur for all loops like this one ! |
|
| Author: | SpiderX [ Thu May 08, 2014 2:54 pm ] |
| Post subject: | Best Bob |
Hi phil, Wow...cant believe you caught this. Wonder what are the chances for this to happen. Cheers |
|
| Author: | phil_trade [ Thu May 08, 2014 3:07 pm ] |
| Post subject: | Best Bob |
it's happen to me this afternoon... error message just fire after the second a new trade on GBPJPY... there are 25 charts running... so a lot of possibilities to crunch. Need to code to filter better Symbol(). I have to add this Code: Select all |
|
| Author: | SpiderX [ Thu May 08, 2014 3:18 pm ] |
| Post subject: | Best Bob |
The below can be a possible fix, though i can already imagine how it might fail...if you got multiple orders opening and closing at the same time. Not perfect, but guess....it could work ? Cheers Code: Select all |
|
| Author: | phil_trade [ Thu May 08, 2014 3:20 pm ] |
| Post subject: | Best Bob |
I will test that. for now I have to add this Code: Select all |
|
| Author: | phil_trade [ Thu May 08, 2014 3:37 pm ] |
| Post subject: | Best Bob |
May be it will be safer to EXIT the loop if if(OrdersTotal()!= InitialOrdersTotal) and wait next tick ? this should avoid all add/close trade interference ? |
|
| All times are UTC | Page 5 of 8 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|