I don't want to show indicator in backtest

 
Hello is there something that can I do if I don't' want to show my indicator when I backtest my EA ? Is a mq5 code.....
 
 if (MQLInfoInteger(MQL_TESTER))
      {
        TesterHideIndicators(true);
      } 


Place the code in OnTick() or OnStart() section of your code.

 
Osazee Asikhemhen #:

Thanks so much :)
 
Osazee Asikhemhen #:


Place the code in OnTick() or OnStart() section of your code.

Normally you would do it in Oninit before creating the handles.

 
Keith Watford #:

Normally you would do it in Oninit before creating the handles.



Yes. It works too.

Reason: