What you are doing seems very reasonable to me. If you have not already done so I would change the chart timeframe to each of D1, W1 and MN1 in turn and do a right mouse click, refresh, to make sure your data is up to date. A chart which is not open does not automatically get updated.
There is a trick to getting another chart to update using ArrayCopyRates in an old thread.
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
Hi, I'm trying to work out daily, weekly, monthly and yearly opening prices.
I've just put very simple code together, however when I run this the weekly and monthly prices do not at all match up to what I'd expect.
I have attached a copy of the journal, and you'll see that a new weekly opening price is opening up on a Thursday... not sure why. The monthy opening is on the 23rd of the month...?
Please look at the rows with comments cos I've specifically marked them in to try and make this easier to detect.
My thinking is that:
1) it is something to do with the timezones and I'm not aware of how metatrader works
2) I have a data issue
3) Also, re calculating a yearly opening price, couldn't find the period. Does that mean it can't be done?
Can anybody please explain to me what I am doing wrong?
Ta