use iBarShift()
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I'm working on an indicator that uses several timeframes' indicatorX's
value. And then, I need to use the shift value of each of them, in
regard to a specific history time point.
Let me put it this way:
"datetime iTime( string symbol, int timeframe, int shift)
Returns Time value for the bar of indicated symbol with timeframe and
shift. If local history is empty (not loaded), function returns 0."
I need to do it contrary ---- give me a time point in history, how can
I get "shift"? Assume that current chart is M30.
Thanks.