Skip to content

charton API


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

Interface: IndicatorEvents ​

Defined in: packages/core/src/indicators/manager.ts:32

Events emitted by the indicator manager, by name: indicators added, removed, changed or refused, compute errors, and external data status.

Extended by ​

Properties ​

indicator:add ​

indicator:add: object

Defined in: packages/core/src/indicators/manager.ts:33

indicator ​

indicator: Indicator


indicator:change ​

indicator:change: object

Defined in: packages/core/src/indicators/manager.ts:39

Inputs or visibility changed through the handle, or the indicator went live or pending because its definition was registered or unregistered.

indicator ​

indicator: Indicator


indicator:error ​

indicator:error: object

Defined in: packages/core/src/indicators/manager.ts:44

compute or update threw (the plots show no values), or restored state did not fit the definition and defaults replaced the parts that didn't.

error ​

error: unknown

indicator ​

indicator: Indicator


indicator:refuse ​

indicator:refuse: object

Defined in: packages/core/src/indicators/manager.ts:53

add() or duplicate() refused an indicator: the access rule (access.allow) said no ('blocked'), or the chart already holds limit indicators ('limit'). The call throws after this fires; apps show an upgrade prompt or a notice here.

reason ​

reason: IndicatorRefusal

type ​

type: string


indicator:remove ​

indicator:remove: object

Defined in: packages/core/src/indicators/manager.ts:34

indicator ​

indicator: Indicator


indicator:status ​

indicator:status: object

Defined in: packages/core/src/indicators/manager.ts:46

The load state of an indicator's external data, or its message, changed (see Indicator.status).

indicator ​

indicator: Indicator

message ​

message: string | null

status ​

status: IndicatorStatus


indicators:access-change ​

indicators:access-change: object

Defined in: packages/core/src/indicators/manager.ts:55

setAccess() or setLimit() was called: which indicators may be added changed.

allow ​

allow: AccessRule | null

limit ​

limit: number | null