FXDreema generated code is not working in MT5 strategy tester
-
The problem is that SL/TP-s are not triggered when testing multicurrency EA using "Open prices only" modelling. I will describe the problem in step-by-step tutorial:
-
Please find from here https://fxdreema.com/shared/5ZhNrcDpb a very simple MA based EA (it takes trades in every MA cross), after that move the file into MT5 Experts folder
-
Please run the test with following parameters

-
Please observe during the simulation how SL/TP-s are triggered in Strategy visualization window (you will notice that they are not triggered at all) e.g EURGBP currency pair (this problem is not related with certain currency pair, you can check also some other pair)

-
Check the Balance / Equity graph - at the end it will drop to zero, because all orders are getting stop-out's, and that is explainable because TP/SL-s are not triggered, total amount of losses are bigger than equity and that's why all orders get Stop-out's.


In conclusion testing multicurrency EA using "Open prices only" modelling is not working properly, because TP/SL-s are not triggered. It is working if you use other type of modelling, e.g "Every tick" modelling.
-
-
@mmaarits Never tried this multicurrency combo. I'm interested in the solution to this issue too.