RichMoo:
using iOpen() might help you. https://docs.mql4.com/series/iopen
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.
iOpen - Timeseries and Indicators Access - MQL4 Reference
- docs.mql4.com
Open price value for the bar of specified symbol with timeframe and shift or 0 if error. To check errors, one has to call the GetLastError() function.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.