Buy order based on a previous condition
-
Hi...
I am looking to place a buy at position 2 (MA Crossover).
The EA needs to check first...if condition 1 is first met. (Previous Candle/MA Crossover over the red MA)
How can I do this please?

-
You need a boolean variable to check if condition 1 happened in the past. Then You can search for the second condition on a separate branch tree headed by a condition block requesting that boolean variable to be true. Please notice that you will need to reset the variable when necessary. Otherwise the system will only work once.
-
@l-andorrà many thanks!
-
You're welcome.