Download MetaTrader 5

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

To add comments, please log in or register
Rasoul Mojtahedzadeh
33234
Rasoul Mojtahedzadeh  

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.

Carl Schreiber
Moderator
7944
Carl Schreiber  

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.

Alain Verleyen
Moderator
35039
Alain Verleyen  
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.
To add comments, please log in or register