TheEconomist:
It's normal. iBarShift return the bar number which contains the specified time, if any.
Build 216.
Is it normal that an exact iBarShift to return a bar number even if it's not there?
I am looking for a specific date, something @14:45 for instance, on the H1, with exact=true, and it returns a bar number on H1, though all hourly bars begin @:00 . Is that normal or is a bug?
I had to redo my version of iBarShift, and it's much slower...
[14:00 - 14:59] contains 14:45, so it is correct. See also https://www.mql5.com/en/forum/145041

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
Build 216.
Is it normal that an exact iBarShift to return a bar number even if it's not there?
I am looking for a specific date, something @14:45 for instance, on the H1, with exact=true, and it returns a bar number on H1, though all hourly bars begin @:00 . Is that normal or is a bug?
I had to redo my version of iBarShift, and it's much slower...