Is it possible to find the time of a Bar, I am stepping through a chart and want
to do time related calculations ?
- array out of range problem mql5
- set start time of bars??
- MACD indicator
Thanks Phy, I have tried these functions but they appear to work from the current server time. This is fine for getting the realtime value, but I am trying to run an expert/indicator on a chart to be able to identify past events.
As an example, I have tried to use both the Time() and iTime() functions to plot an arrow on a 5 minute chart at 9am through to 10am, but it only works going forwards and doesn't show arrows for 9am yesterday and prior.
Any ideas why or a small code snippet would be very appreciated.
[] vs ()
oops..
Didn't compile it, just typed it here
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