How to get with mql5 a list of all indicators attached to the chart...
Hello, I would like to know how to get with mql5 a list of all indicators attached to the chart?...
- www.mql5.com
I have the following code inside an script:
void OnStart() { int num_windows = (int)ChartGetInteger(0, CHART_WINDOWS_TOTAL); printf("num_windows: %d", num_windows); for (int i = 0; i < num_windows; i++) { for (int j = 0; j < ChartIndicatorsTotal(0, i); j++) { string name = ChartIndicatorName(0, i, j); printf("window index: %d, chart index: %d, name: %s", i, j, name); } } }
which currently list all the indicators in all subwindows in the main chart.
But I would like to get the last value of each buffer of each of them. Then, I need some function to retrieve this data but I cannot find it.
Regards.
I have the following code inside an script:
which currently list all the indicators in all subwindows in the main chart.
But I would like to get the last value of each buffer of each of them. Then, I need some function to retrieve this data but I cannot find it.
Regards.
I found it.
I have to use: ChartIndicatorGet()
Thanks!
Hello, I would like to know how to get with mql5 a list of all indicators attached to the chart?,
and then get the properties of those indicators?
Regards, Cyberglassed.