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