Bar variables reference
All 17 bar variables in AlgoBarsX, each with its parameters, defaults, ranges and an example: open, high, low, close, volume, time, hl2, hlc3, ohlc4, bar.index and 7 more.
open high low close volume time hl2 hlc3 ohlc4 bar.index bar.confirmed bar.is_first bar.is_last bar.range bar.body bar.direction bar.type
close→ series<price>#
Close of the bar (final on confirmed bars).
last_price = closevolume→ series<number>#
Volume, or tick count on range, x-ray and renko bars where recorded.
activity = volumetime→ series<time>#
Bar time (completion time on range, x-ray and renko bars).
stamp = timeohlc4→ series<price>#
(open + high + low + close) / 4.
average_price = ohlc4bar.index→ int#
Index of the bar from the start of history.
n = bar.indexbar.confirmed→ bool#
True once the bar has closed.
closed = bar.confirmedbar.is_first→ bool#
True on the first evaluated bar.
starting = bar.is_firstbar.is_last→ bool#
True on the last historical bar.
caught_up = bar.is_lastbar.body→ distance#
Absolute distance between open and close.
body_now = bar.bodybar.type→ bartype#
The script's bar type.
current_bars = bar.type