Skip to content

Documentation / @finchart/indicators / AttachCrLook

Interface: AttachCrLook ​

Defined in: indicators/src/plugins.ts:1319

The options shared by indicators that can create their own pane. Passing pane and ownPane together throws — a borrowed pane has nowhere to apply a size, and silently ignoring it would make the cause hard to track down.

Extends ​

Properties ​

colors? ​

optional colors?: object

Defined in: indicators/src/plugins.ts:1323

The band and its four averages. The averages share one colour by default — the legend tells them apart by name (the window from a source, MA1…MA4 or labels from a node).

cr? ​

optional cr?: string

ma1? ​

optional ma1?: string

ma2? ​

optional ma2?: string

ma3? ​

optional ma3?: string

ma4? ​

optional ma4?: string


labels? ​

optional labels?: [string, string, string, string]

Defined in: indicators/src/plugins.ts:1329

The four averages' legend names. From a source they read MA(w) with each window; from a node the windows are not known, so they read MA1…MA4 unless you name them here.


name? ​

optional name?: string

Defined in: indicators/src/plugins.ts:300

Inherited from ​

IndicatorNameOption.name


ownPane? ​

optional ownPane?: object

Defined in: indicators/src/plugins.ts:254

The size of the own pane to create. Omit it for OWNED_PANE_LAYOUT (flex 0.35, minHeight 60). Meaningless if pane is given — giving both throws ContractError.

flex? ​

optional flex?: number

minHeight? ​

optional minHeight?: number

Inherited from ​

OwnedPaneOptions.ownPane


pane? ​

optional pane?: SeriesHost

Defined in: indicators/src/plugins.ts:1321

Omit it to create a new pane, with a line at 100 (the balance point); the axis stays autoScale.

Overrides ​

OwnedPaneOptions.pane