Strategy Tester is not working properly

 

I have some problems with Strategy Tester.

+ The UI is frozen and doesn't refresh

+ Journal log does not update while running.

+ Pause / Play button is disabled after a few presses and releases

Windows version:

Edition Windows 11 Pro

Version 22H2

Installed on ‎2/‎2/‎2023

OS build 22621.1485

Experience Windows Feature Experience Pack 1000.22639.1000.0


 

Try to backtest another EA, like MACD_Sample already included into the platform.

I'm almost sure the problem is not the tester but the EA you are testing that is in loop due to bad code...

 
Fabio Cavalloni #:

Try to backtest another EA, like MACD_Sample already included into the platform.

I'm almost sure the problem is not the tester but the EA you are testing that is in loop due to bad code...

I tried isolating each part of the source code and to my surprise, the problem was caused by the Comment function.

   double max = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MAX);
   Comment("Name: ", account.Name(), "\n",
           "Server: ", account.Server(), "\n",
           "Company: ", account.Company(), "\n",
           "Balance: ", account.Balance(), "\n",
           "Equity: ", account.Equity(), "\n",
           "Profit: ", account.Profit(), "\n",
           "Leverage: 1:", account.Leverage(), "\n",
           "Max Volume: ", max, "\n",
           "Point Value: ", _Point, "\n"
          );