Download MetaTrader 5

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

To add comments, please log in or register
ale
68
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?

Alain Verleyen
Moderator
32403
Alain Verleyen  
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  
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