Need Ideas for this situation
-
I am trying to build this scenario for a week but failed and give up. Can you have a look, at least share your opinions how to achive this one?
Thank you. shared/Go9XmXzSb
-
Here is what I tried so far
-
I think you need to use some Variable to store the current states while the EA is working. The type of variable can be "int" or "string" if you wish, it's a personal choice.
Otherwise more "professional" would be to have an indicator to make those buy and sell signals.
By the way this is impossible situation:

.. because blocks does not wait to pass. You may take a look at this example: https://fxdreema.com/demo/mt4-wait-crossovers But I don't think it will work well for your strategy.