mt4forum:
Read this thread: https://www.mql5.com/en/forum/143687
Hi,
I'd like to add just another question to the iBarShift discussion:
e.g.
iBarShift("EURUSD", PERIOD_H4, D'2013.06.21 14:10' , true) currently returns 62.
I would have expected it to return -1, since there is no bar in PERIOD_H4, opening exactly at D'2013.06.21 14:10' .
So when would it return -1 then?
Thanks,
found the answer in the link.

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'd like to add just another question to the iBarShift discussion:
e.g.
iBarShift("EURUSD", PERIOD_H4, D'2013.06.21 14:10' , true) currently returns 62.
I would have expected it to return -1, since there is no bar in PERIOD_H4, opening exactly at D'2013.06.21 14:10' .
So when would it return -1 then?