MT5 Backtesting Problem

 

When using a custom symbol or 3rd party data (CSV File) I sometimes get this when trying to run the backtest. Does anyone know why this happens?

 

I had some backtesting problems until yesterday, too, so I understand how frustrating it can be.

Obviously no trades are triggered. What I would do: run the debugger and first set a stop mark in your code where the buy and sell orders are sent.

Is this section not reached at all? Then you should debug your buy and sell criteria line by line and check the value of each variable and see why the criteria are never met.

If the OrderSend-section is reached on the other hand, I would check here line by line if all variable values make sense and of course check the retcode of OrderSend.


Chris.

Reason: