HideTestIndicators on live chart

 

Hello,


my EA uses an indicator to determine it's trades, the problem is that the indicator has quite a lot of parameters. When testing, it is possible to just add a fresh indicator on the chart, but with the many parameters, it's easy to get mistaken, and it's a lot of work to make sure it's all properly set.


It seems that HideTestIndicators only works if you want to hide the indicator, when testing (once the visual mode ends, the indicators show up).


Is it possible to show the indicators that EA uses, in the live chart?

 

Well, I have solved the problem by dumping all of the parameters into a file, then having the indicator read them from a file.


I can still go wrong here (entering the wrong file name for example)... so if anyone has any idea, please reply :)

 

You could add some logic to your indicator, allowing it to check whether or not it is running in a live account using the IsDemo() function, and have it display parameters accordingly.

https://docs.mql4.com/check/IsDemo


CB