Skip to content

charton API


charton API / @chart-on/core / index / IndicatorInterval

Interface: IndicatorInterval ​

Defined in: packages/core/src/indicators/types.ts:264

Another interval's bars an indicator reads (see IndicatorDef.intervals).

Properties ​

interval ​

interval: Interval

Defined in: packages/core/src/indicators/types.ts:266

Bar interval to load, longer than the chart's, e.g. '1d' on an intraday chart.


lookback? ​

optional lookback?: number

Defined in: packages/core/src/indicators/types.ts:272

Bars of that interval needed before the chart's first bar, e.g. the length of an RSI computed on them. The chart loads that many more, so the warm-up stays off screen. Default 0.


symbol? ​

optional symbol?: string

Defined in: packages/core/src/indicators/types.ts:280

Another symbol to load the bars of, e.g. an index to compare against. Default the chart's symbol. Its bars are cached per symbol and interval, so a switch of the chart's symbol keeps them, and its newest bar follows the data source's stream when there is one (otherwise it stays as loaded). They are read as bars['<symbol>@<interval>'].