| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| OAW - dudest spin https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3612 |
Page 2 of 2 |
| Author: | pt2004 [ Fri Jun 06, 2014 2:41 pm ] |
| Post subject: | OAW - dudest spin |
Hi all, Anyone still using this ea ?? It is working ok for me, demo GPrime http://www.myfxbook.com/members/pt2004/ ... est/900437 , using ATR based trails . Only problem is , some times it opens only some pairs, no errors, could it be the start time being the same for all pairs? It would be good if we could also adjust the starting minutes, so we set different starting times for all pairs by 1 minute... This is only my guess, i understand nothing about coding... Best Regards PT |
|
| Author: | lazypips [ Fri Jun 06, 2014 6:05 pm ] |
| Post subject: | OAW - dudest spin |
Looks like that EA has been erased |
|
| Author: | pt2004 [ Fri Jun 06, 2014 6:34 pm ] |
| Post subject: | OAW - dudest spin |
Look here http://www.stevehopwoodforex.com/phpBB3 ... 7&start=10 |
|
| Author: | trader689 [ Fri Jun 06, 2014 9:47 pm ] |
| Post subject: | OAW - dudest spin |
hi can i ask you more about the ATR based trails. i cannot find that option in the EA, are you using an trade manager EA? if so do you mind sharing settings. thanks
|
|
| Author: | dudest [ Sat Jun 07, 2014 8:51 am ] |
| Post subject: | OAW - dudest spin |
Goodstuff PT! I still haven't managed to figure out why sometimes some pairs do not open trades Unfortunately I've been a bit caught up, haven't had much time to decode a few things I'd like Trailing is always a great way to lock-in profit! Do you mind sharing your ATR trail settings? Thanks for posting your progress! Cheers PS: I have uploaded the EA also to post #1 of this thread to avoid confusion in looking for it . |
|
| Author: | SteveHopwood [ Sat Jun 07, 2014 11:16 am ] |
| Post subject: | OAW - dudest spin |
I cannot see why the ea occasionally fails to fire a trade either. I suppose, check that your history tab is empty of trades with the same magic number. I noticed a bloop - just the kind of thingy I do. Lines 362 & 363 are // Check Trades for (int cc = OrdersHistoryTotal() - 1; cc >= 0; cc--) which means the bot is checking history twice. // Check Trades for (int cc = OrdersTotal() - 1; cc >= 0; cc--) is what you need. int CheckTradesOnStart( int op_type ) is only called from init(). Once a trade is sent, then it only returns -1 again after a restart - and this is the only time that long_ticket_number and its partner are set to -1. I suppose a dim possibility is that the program was not restarted since the previous trade, so long_ticket_number etc are not reset to -1, stopping a trade. FWIW, this ea is in danger of sending multiple small trades if the user is with a less-than-reputable broker. What happens is this: the ea sends the trade and it shows up instantly in your trading window; this is a mirage as the trade has not yet returned from the criminal's server; come the next tick, the ea sees it has not traded yet and that the conditions are there for a trade, and so trades. This process can be repeated many times and you end up with umpteen trades and a margin call. You need Matt Kennel's OrderReliable code to overcome this - you will find it in all of my ea's. Sing out if it confuses you and I will add it - I would do so automatically were I to use this ea live anyway, so it is not much bother for me. |
|
| Author: | SteveHopwood [ Sat Jun 07, 2014 11:20 am ] |
| Post subject: | OAW - dudest spin |
I just made the change to CheckTradesOnStart and realise that your bloop does not mean that the ea is checking the history twice. It is checking the open trades, but starting from the wrong trade. Still don't know if this is what stops the occasional trade. |
|
| All times are UTC | Page 2 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|