Download MetaTrader 5

Hiding Indicators during Stratagy Tester Visualization...

To add comments, please log in or register
cowil
810
cowil 2012.12.05 22:23 

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
Benjamin Dixon
23307
Benjamin Dixon 2014.01.22 08:06  
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);}

To add comments, please log in or register