Appearance
Data series
candle.* series advance once per bar, block.* series once per block. Read the current value with .value and older values with .at(k).
| Name | Description |
|---|---|
candle.open | Price of the bar's first block. |
candle.high | Highest block price in the bar. |
candle.low | Lowest block price in the bar. |
candle.close | Price of the bar's last block so far. |
candle.volume | Alpha traded through the pool in the bar. |
candle.turnover | TAO traded through the pool in the bar. |
candle.trades | Number of pool trades in the bar. |
candle.time | Bar open time, ms since epoch (UTC). |
candle.movingPrice | protocol moving price at the bar's first block (bar-aligned; block.movingPrice is per block) |
block.number | Block height. |
block.time | Block timestamp, ms since epoch (UTC). |
block.price | Pool price after the block, TAO per alpha. |
block.taoIn | TAO in the pool. |
block.alphaIn | Alpha in the pool. |
block.alphaOut | Alpha outstanding (staked outside the pool). |
block.movingPrice | The protocol's moving (smoothed) price. |
block.trades | Pool trades in the block. |
block.volume | alpha traded through the pool per block; in quick mode sampled per bar like the other block.* series |
block.turnover | TAO traded through the pool per block; in quick mode sampled per bar like the other block.* series |
candle
candle.open
ts
candle.open: SeriesPrice of the bar's first block.
Types: Series
candle.high
ts
candle.high: SeriesHighest block price in the bar.
Types: Series
candle.low
ts
candle.low: SeriesLowest block price in the bar.
Types: Series
candle.close
ts
candle.close: SeriesPrice of the bar's last block so far.
Types: Series
candle.volume
ts
candle.volume: SeriesAlpha traded through the pool in the bar.
Types: Series
candle.turnover
ts
candle.turnover: SeriesTAO traded through the pool in the bar.
Types: Series
candle.trades
ts
candle.trades: SeriesNumber of pool trades in the bar.
Types: Series
candle.time
ts
candle.time: SeriesBar open time, ms since epoch (UTC).
Types: Series
candle.movingPrice
ts
candle.movingPrice: Seriesprotocol moving price at the bar's first block (bar-aligned; block.movingPrice is per block)
Types: Series
block
block.number
ts
block.number: SeriesBlock height. Block series advance once per block in precise, 1B and live runs, and once per bar in quick backtests.
Types: Series
block.time
ts
block.time: SeriesBlock timestamp, ms since epoch (UTC).
Types: Series
block.price
ts
block.price: SeriesPool price after the block, TAO per alpha.
Types: Series
block.taoIn
ts
block.taoIn: SeriesTAO in the pool.
Types: Series
block.alphaIn
ts
block.alphaIn: SeriesAlpha in the pool.
Types: Series
block.alphaOut
ts
block.alphaOut: SeriesAlpha outstanding (staked outside the pool).
Types: Series
block.movingPrice
ts
block.movingPrice: SeriesThe protocol's moving (smoothed) price.
Types: Series
block.trades
ts
block.trades: SeriesPool trades in the block.
Types: Series
block.volume
ts
block.volume: Seriesalpha traded through the pool per block; in quick mode sampled per bar like the other block.* series
Types: Series
block.turnover
ts
block.turnover: SeriesTAO traded through the pool per block; in quick mode sampled per bar like the other block.* series
Types: Series
Types
Series
A numeric time series aligned to bars (candle., ta.) or blocks (block.*).
| Field | Type | Description |
|---|---|---|
value | number | Current value; NaN before the series has history. (read-only) |
at | (k: number): number | Value k steps ago (k = 0 is the current value). NaN beyond history. |
length | number | Number of values available so far. (read-only) |
firstValid | number | Index of the first non-NaN value, or -1. (read-only) |
alignment | "bar" | "block" | Alignment of this series. (read-only) |
valueOf | (): number | Lets +fast and fast - slow work in plain JS; comparisons should use .value. |
BoolSeries
Boolean-valued series (ta.crossover etc.). .value is 0/1; .at(k) likewise.
BoolSeries extends Series
SeriesLike
A series, or a constant number used as a flat series (e.g. ta.crossover(rsi, 30)).
ts
type SeriesLike = Series | number