Download MetaTrader 5
To add comments, please log in or register
Unable to find the answer to your question? Use the search!
ale
68
ale 2015.06.11 06:34 

Is it possible inside an EA to detect that the user has changed the parameters of one of the indicators?

My current solution is to embed the parameters in the short name of the indicator and then check every second inside OnTimer(). Is there a better way to detect changes to the indicator parameters?

Alain Verleyen
Moderator
28524
Alain Verleyen 2015.06.11 07:08  
ale:

Is it possible inside an EA to detect that the user has changed the parameters of one of the indicators?

My current solution is to embed the parameters in the short name of the indicator and then check every second inside OnTimer(). Is there a better way to detect changes to the indicator parameters?

A CHARTEVENT_CHART_CHANGE event is triggered when you changed indicator's parameters.
ale
68
ale 2015.06.11 07:21  
angevoyageur:
A CHARTEVENT_CHART_CHANGE event is triggered when you changed indicator's parameters.
Thanks! The MQL4 has no documentation for CHARTEVENT_CHART_CHANGE, but your comment led me to the MQL5 docs.
/
To add comments, please log in or register