Download MetaTrader 5

Strategy Tester Visual Mode and Indicators

To add comments, please log in or register
Henrique Vilela
1459
Henrique Vilela  

Hi Guys,

When I backtest my EA in visual mode sometimes it shows the used indicators and sometimes not. I'm not recompiling the EA or anything, I just stop the test and start it again many times and sometimes the indicators are present and sometimes not.

Im using the standard library to create de indicators, like this:

CiBands bands; 

int OnInit()
  {
   bands.Create(_Symbol,Period(),Bands_Period,Bands_Period,Bands_Deviations,Bands_Applied);
   ChartIndicatorAdd(0,0,bands.Handle());
  }
PS: I'm running MT5 in a Mac trough PlayOnMac. Maybe it's a Mac related problem.
Henrique Vilela
1459
Henrique Vilela  

Just notice that when the indicators are not loaded, all the chart objets are not visible too.

Everything works the same, all the indicator values are accessible, just not visible. 

Then all it take is an stop and a start and everything works again.

Really weird behavior. 

First Run 

Second Run 

To add comments, please log in or register