How to detect changes to indicator's parameters in EA?

Back to topics list To post a new topic, please log in or register
avatar
20
ale 2015.06.11 08: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?

avatar
Moderator
3206
angevoyageur 2015.06.11 09: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.
avatar
20
ale 2015.06.11 09: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.
Back to topics list  

To add comments, please log in or register