EA visualization settings

 

Hi everybody,

in my EA I use a lot of indicators. But by default, all used indicators automatically appear on the screen.

Is this possible to switch them off and especially only some of them.

 
one_monk:

Hi everybody,

in my EA I use a lot of indicators. But by default, all used indicators automatically appear on the screen.

Is this possible to switch them off and especially only some of them.


Hi,

Did you try this? :)

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   //---
   HideTestIndicators(true);

Good luck.

 

I will check it. But I'm sure that it will work. Thank you :)

 

No, it doesn't work. I check in google - may be this function exist in MT4 but not in MT5. Any other ideas?

 
one_monk:

No, it doesn't work. I check in google - may be this function exist in MT4 but not in MT5. Any other ideas?


ohh.. I thought you are in MT4 :))

in MT5 you can use function

IndicatorRelease()

read at https://www.mql5.com/en/docs/series/indicatorrelease

Good luck.

Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
Documentation on MQL5: Timeseries and Indicators Access / IndicatorRelease
  • www.mql5.com
Timeseries and Indicators Access / IndicatorRelease - Reference on algorithmic/automated trading language for MetaTrader 5
 

May be you don't understand me correct (or the opposite :)). I want to switch off only indicator visualization, but continue use it. IndicatorRelease function will free the handle and I do not use it anymore.

I have a object and in constructor i take the handle to indicator. I use it for all other data acquisition (this is the MetaQuotes recommendation). This save many time and memory. But the visualization is a problem.

 
one_monk:

 But the visualization is a problem.


Yes, 
I have not found the equation of HideTestIndicators for MQ5 as well.
I will wait for this :)

 

OK, thanks for your efforts.

 
A bit late but you can try ..
TesterHideIndicators(true);
handle = iATR(_Symbol, _Period, 14);
TesterHideIndicators(false);
Reason: