Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 can create custom graphical tools?
Bogdan Caramalac
1103
Bogdan Caramalac 2014.03.14 14:46 

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...

Bogdan Caramalac
1103
Bogdan Caramalac 2014.03.14 15:02  
Found solution...check with iTime if found bar matches; but not sure if this was iBarShift intended behavior...
Alain Verleyen
Moderator
28546
Alain Verleyen 2014.03.14 15:38  
TheEconomist:

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...

It's normal. iBarShift return the bar number which contains the specified time, if any.
whroeder1
13602
whroeder1 2014.03.14 15:59  
[14:00 - 14:59] contains 14:45, so it is correct. See also https://www.mql5.com/en/forum/145041
/
To add comments, please log in or register