How to read value of an indicator attached to a chart from EA code?

 

I would like to know how I can read the value in the buffer of an indicator attached to a chart from my EA code? Please note that I do not want to use iCustom function. I want to use, for example, ChartIndicatorsTotal() and ChartIndicatorName(), to access to the buffer of an attached indicator to the chart.

 

I don't think it's possible. Either use iCustom() or recode the indicator within your ea.

Well there is an alternative but it is really a challenge:

Make a snapshot of the chart and start a graphical analysis of this gif-file - but mt4 does not provide what you will need.

 
Rasoul:

I would like to know how I can read the value in the buffer of an indicator attached to a chart from my EA code? Please note that I do not want to use iCustom function. I want to use, for example, ChartIndicatorsTotal() and ChartIndicatorName(), to access to the buffer of an attached indicator to the chart.

It's possible with MT5 but not with MT4.
This website uses cookies. Learn more about our Cookies Policy.