Hiding Indicators during Stratagy Tester Visualization...

 

Hi,

I have a bit of a problem I hope someone can help me with. I'm wanting to hide the indicator panes in the strategy tester DURING a visualization. I realise that you can use IndicatorRelease() in the OnDeinit()  event handler or create a tester.tpl to hide Indicators AFTER the strategy tester has completed and the resulting chart is displayed but I was wanting to hide specific Indicators during a visualization.

 Anyone have any ideas? Thanks in advance for your help with this.

Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
  • www.mql5.com
Timeseries and Indicators Access / IndicatorRelease - Documentation on MQL5
 
cowil:

Hi,

I have a bit of a problem I hope someone can help me with. I'm wanting to hide the indicator panes in the strategy tester DURING a visualization. I realise that you can use IndicatorRelease() in the OnDeinit()  event handler or create a tester.tpl to hide Indicators AFTER the strategy tester has completed and the resulting chart is displayed but I was wanting to hide specific Indicators during a visualization.

 Anyone have any ideas? Thanks in advance for your help with this.

You can disallow visual testing all together, put this in to the OnInit:

   if (MQLInfoInteger(MQL_VISUAL_MODE)) {Print("Sorry, Visual Testing Mode is not allowed.");return (-1);}