Getting data for different time periods
Hello,
I want to get the chart data for, for example H1, M15 and M1 so that I can display something about them regardless of what time period is currently being displayed.
(I am very new to MT4, but not programming) *blushes*
I have seen an example where within OnCalculate, the flowing code is used to plot the open price, or other available data
However, if I change the time period displayed, the loop here uses only that displayed data.
How would I get say the H1 data? I presume I can somehow set a period to get data from, but I am unsure where to start.
- docs.mql4.com
Hello,
I want to get the chart data for, for example H1, M15 and M1 so that I can display something about them regardless of what time period is currently being displayed.
(I am very new to MT4, but not programming) *blushes*
I have seen an example where within OnCalculate, the flowing code is used to plot the open price, or other available data
However, if I change the time period displayed, the loop here uses only that displayed data.
How would I get say the H1 data? I presume I can somehow set a period to get data from, but I am unsure where to start.