Completed Chart Candle
Prices, the average close, or the end time of completed chart candles, built from contiguous minute data. Stock candles align to the regular trading session.
Completed Chart Candle
Definition
Prices, the average close, or the end time of completed chart candles, built from contiguous minute data. Stock candles align to the regular trading session.
Parameters
Asset, candle minutes, line (open, high, low, close, sma, endTime), candle count, completed-candle offset
Output range: Same scale as price for open, high, low, close and sma; the endTime line returns the end time of the newest selected candle in Unix seconds
Example
`ChartBar(AAPL, 5, 'sma', 20, 0)` averages the closes of twenty completed five-minute candles.
Usage notes
Returns no value until sufficient complete candles exist. Missing minutes invalidate the affected history; a forming candle is excluded.
Full indicator reference