A bar is identified by three coordinates
Symbol, timeframe, and shift together identify the requested bar. NULL selects the current chart symbol, while PERIOD_CURRENT or zero selects the current chart timeframe. An explicit timeframe makes cross-timeframe logic easier to review.
Shift 0 changes as ticks arrive. Use shift 1 when a rule must wait for a completed bar, and document any intentional intrabar behavior.
| Function | Returned value | Missing-history signal |
|---|---|---|
| iTime | Bar opening time | 0 |
| iOpen / iHigh / iLow / iClose | Price | 0 |
| iVolume | Tick volume | 0 |
| iBars | Available bar count | 0 |
