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
you tested "2013.02.25 09:05" i assume
if you change date to 24 like "2013.02.24 09:05" you will get it
your english is good
only how we understand what is written is sometimes different
if i have problems with a function and wants to know what it does
then the answer will be mostly given to me with a short testing program
yes, I am doing it....
for today´s setup: 2013.02.25 09:05 return StartShift1 and StartShift2 the same value, different -1
mql ignore last parameter true or false....
Fce. iBarShift() will not solution for my problem: Does exist bar with exact open time? Maybe compare open time each bars, compare datetime value...
modify code:
I using iBarShift(..., true) - if bar with exact open time exist - it must the same value datetime - therefore next step: compare datetime values...
it is ok
modify code:
I using iBarShift(..., true) - if bar with exact open time exist - it must the same value datetime - therefore next step: compare datetime values...
it is ok
Another solution
It seems the Documentation got screwed up in translation . . . Google translation from the Russian
"Search bar at the time. The function returns the offset of the bar, which owns the specified time. If for the time bar is missing (the "hole" in the history), the function returns, depending on the parameterexact , -1 or offset the nearest bar. "
it is in fact nothing to do with the opening time of the bar.
I think it mean not "hole", but before the earliest or after the latest bar, then it will return -1 if use "exact".
I believe this topic duplicates this one https://www.mql5.com/en/forum/141486/page2