Add a wait one candle before activating
-
Hi,
I would like to have my EA wait one candle (15min.) before restarting. Now it closes a trade and immediately opens another because the conditions are still met. So I would like to give it time to move before it opens another position. Ideally add someting that will open another trade only after the price moves a certain pips in the opposite direction. Here is a screen shot of my primitive EA

-
Set up a separate branch:
once per bar -> Counter pass 1 time -> modify variable (say, bool startup_begin = true)
At the top of your main branch, add a condition for the above variable