The index of the bar corresponding to the specified time. If the bar corresponding to the specified time is not found (there is a gap in the history), the function returns -1 or the index of the nearest bar (depending on the 'exact' parameter)."
The index of the bar corresponding to the specified time. If the bar corresponding to the specified time is not found (there is a gap in the history), the function returns -1 or the index of the nearest bar (depending on the 'exact' parameter)."
Did you try setting the exact parameter to false?
Yes, it is false, I did not change it since that is the default value.
An example of how to work in the indicator using 'iBarShift' when requesting data from someone else's timeframe is in the indicator.
The main thing: it is always necessary to check - what did the function return? Is there an error?
Okay, thanks. I would figure something out. Am looking for why/when the iBarShift() would have a value. The code is suppose to run once per new candle.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I do not have telepathic abilities - insert your code correctly and I can help you.
I have done that. thanks.
"Return Value
Yes, it is false, I did not change it since that is the default value.
An example of how to work in the indicator using 'iBarShift' when requesting data from someone else's timeframe is in the indicator.
The main thing: it is always necessary to check - what did the function return? Is there an error?
An example of how to work in the indicator using 'iBarShift' when requesting data from someone else's timeframe is in the indicator.
The main thing: it is always necessary to check - what did the function return? Is there an error?