Simple cross below is not working
-
Hi,
I want to create a simple EA where the EMA100 is divided by the EMA200. When the resulting value crosses below a certain value, the EA should by at next bar open and exit the trade after 360 minutes.
I created the following code but it somehow doesn't generate a trade when I put it to "x<" in the condition but only when it is put to "<".
I don't understand this. Can anyone help please?
-
Here is more about this crossover - https://fxdreema.com/demo/mt4-crossover-indicators
But you have two values and they don't have previous state