Download MetaTrader 5

Is it possible to get the user placed Indicator parameters values in code

To add comments, please log in or register
NeilG
65
NeilG  

Hi,

I searched through the forum and could not find any answers...

Once I place an indicator on a chart [in a separate window or on the main chart], is it possible to get the indicator's parameter values?  For example, I place an ATR indicator on the chart and want to use the parameter value of Period in my code.  Is there a way to get this information?  If yes, how can I cycle through all of the indicators on my chart and pull information from each of them?

As always, thanks for your time and assistance.

Neil 

whroeder1
15910
whroeder1  
snafu4: A) I place an ATR indicator on the chart, is it possible to get the indicator's parameter values?
You placed it, you are the source.
NeilG
65
NeilG  
WHRoeder:
snafu4: A) I place an ATR indicator on the chart, is it possible to get the indicator's parameter values?
You placed it, you are the source.

WHRoeder, I guess I wasn't clear in my description.  In code, I need to read the values/parameters/inputs of an indicator that is already on the chart.  Does anyone know if this is possible?

Thanks 

Alain Verleyen
Moderator
33290
Alain Verleyen  
snafu4:

WHRoeder, I guess I wasn't clear in my description.  In code, I need to read the values/parameters/inputs of an indicator that is already on the chart.  Does anyone know if this is possible?

Thanks 

 

Not possible with MT4. Possible with MT5.

Maybe with WINAPI for standard indicator. For Custom indicators (if you can modify the code), you can use a workaround.

NeilG
65
NeilG  
angevoyageur:

Not possible with MT4. Possible with MT5.

Maybe with WINAPI for standard indicator. For Custom indicators (if you can modify the code), you can use a workaround.

Ok, thanks.
To add comments, please log in or register