@l-andorrà Thanks for your recommendation. I have changed the MA_cross variable to two boolean variables, namely 'MA_cross_buy' and 'MA_cross_sell'.
This is the updated project:
https://fxdreema.com/shared/WjmtonxDb
For point 2, I have tested the EA and I get the same outcome.

I believe this is because variable 'MA_cross_sell' is not able to be reset back to 'false' after the 'if trade' condition is met.
The EA bought at 03:00 and closed with SL at 03:12. There is a 12 mins window for the EA to detect any trade (the 'if trade' condition) and then reset the 'MA_cross_sell' to false.
This is quite odd. What do you think could be causing the error here?


















