stop after a condition and some buys and then reactivate when the condition occurs again.
-
Hello friends. I have not been able to make my EA stop after a condition occurs and make a defined number of buys and then reactivate when the condition occurs again.
I appreciate your help.
Regards -
@alfi said in stop after a condition and some buys and then reactivate when the condition occurs again.:
EA stop after a condition occurs and make a defined number of buys
How can your EA make buys when stopped? You mean manual trades?
-
@roar said in stop after a condition and some buys and then reactivate when the condition occurs again.:
How can your EA make buys when stopped? You mean manual trades?
It is true Roar, I don't want the EA to stop, I want that after making, for example, 5 buys, wait until the condition of averages crossing occurs again and repeat the 5 buys.
-
@alfi ok, so a condition allows 5 buys
Use a counter variable, something like this
https://fxdreema.com/shared/HeO2bziK -
Roar, thank you very much i will try it.