charton API / @chart-on/core / index / IndicatorState
Interface: IndicatorState
Defined in: packages/core/src/indicators/types.ts:507
Serializable indicator state.
Properties
folded?
optionalfolded?:boolean
Defined in: packages/core/src/indicators/types.ts:529
The legend row shows only the title (see chart.setLegendFolded); missing means unfolded.
id?
optionalid?:string
Defined in: packages/core/src/indicators/types.ts:513
The indicator's id on its chart (see Indicator.id); missing in sets made by serializeSet and in layouts saved before ids, where loading gives a new one.
inputs
inputs:
Record<string,InputValue>
Defined in: packages/core/src/indicators/types.ts:518
pane
pane:
number
Defined in: packages/core/src/indicators/types.ts:520
Pane index at the time of saving.
plotStyles?
optionalplotStyles?:Record<string,PlotStyle>
Defined in: packages/core/src/indicators/types.ts:527
Plot styles set over the definition's, by plot id (see Indicator.plotStyles); missing means none.
priceScale?
optionalpriceScale?:string
Defined in: packages/core/src/indicators/types.ts:523
Price scale id given to add, when it overrode the definition's priceScale.
type
type:
string
Defined in: packages/core/src/indicators/types.ts:515
Definition id.
version?
optionalversion?:number
Defined in: packages/core/src/indicators/types.ts:517
The definition's version when saved; missing means 1.
visible
visible:
boolean
Defined in: packages/core/src/indicators/types.ts:521
visibleOn?
optionalvisibleOn?:IntervalRange[]
Defined in: packages/core/src/indicators/types.ts:525
Intervals it shows on (see Indicator.visibleOn); missing means every interval.