Opening 2 trades at once?
-
My EA is opening 2 trades at once. Should only open 1 trade when conditions are met and there after every 5 candles.
https://fxdreema.com/shared/Rm6f9cExc -
It is because of block 30. As soon a a first trade is open, that block is immediately true, so a second trade is open at the same time. If you want one only trade to be open at a time but separated by a discrete time period you need to substitute that block 30 by a for each trade loop specifying your time period.
-
Do you mean like this : https://fxdreema.com/shared/nmwAe9PJb