I have an EA that works pretty good for me. The only problem is that it only makes one trade at a time and wont open another until the last trade is closed. What would I need to change in the code to let it make multiple trades?
Thanks!
Thanks!
Need help to modify indicator 0 replies
Need help to modify EA of Lucky7 Strategy 8 replies
Need help to modify a simple indicator 0 replies
Need help to modify this indicator 0 replies
need help modify trendy_mtf 0 replies
if (Time[0] <= OrderOpenTime()) // don't open a new position if we're still on the same candle { return (false); }
DislikedI think you'll get better response if you share the EA that worked well for you.
anyway, what you can do is to NOT have your EA discard signals while a trade is running. BUT you do have to discard signals generated within the same candle after the initial position is opened. I know you're concerned with it opening multiple positions for every tick within the same candle. All you have to do is... before opening a position, check if one is already opened, then compare the time the trade is opened with the time of the candle, if the time of the trade opening is later than the opening of the candle, discard the signal, else, take it!
on a side note, you should also do the same check on the trade history. this will prevent you opening multiple positions if the trade close out before that candle close.
post your EA codes here and we can do it for you.
Happy trading. =)Ignored
Dislikederm... can you attach the mq4 file instead? That way I can read the codes.Ignored
DislikedThat looks great Zen! Would it be possible to add a feature "inputs" menu to where you can set the max number of simultaneous trades? Like if I only wanted it to trade a max of 3 trades at any one time?
Thanks!Ignored