- Please edit
your (original) post and use the CODE button
(Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - Don't mix apples and oranges.
24h-worker:
I want have access on the one-hour bars and at the same time on the 15 minute bars in my indicator:
The hour bars are correct, but I cant catch the right 15-minute bar.
The rates_total and prev_calculated applies only to the timeframe your chart is on, so to access data from any other timeframe, you'll need to use iBarShift() with the time at ac, to find the correct bar index.

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 want have access on the one-hour bars and at the same time on the 15 minute bars in my indicator:
The hour bars are correct, but I cant catch the right 15-minute bar.