Skip to content

Documentation / @finchart/tools / FibExtension

Interface: FibExtension ​

Defined in: tools/src/drawings.ts:241

A trend-based Fibonacci extension: the a→b swing, retraced to c, projected from c — level 0 sits at c, level 1 at c + (b − a) (at c·b/a when the levels are log-spaced — see LevelSpacing). Its default levels and its formula are its own, not the retracement's: levels past 1 are the point of this tool.

Extends ​

  • DrawingIdentity

Properties ​

a ​

a: Anchor

Defined in: tools/src/drawings.ts:243


b ​

b: Anchor

Defined in: tools/src/drawings.ts:244


c ​

c: Anchor

Defined in: tools/src/drawings.ts:245


id ​

id: string

Defined in: tools/src/drawings.ts:74

Inherited from ​

DrawingIdentity.id


levels? ​

optional levels?: number[]

Defined in: tools/src/drawings.ts:247

Absent means FIB_EXTENSION_LEVELS. Sorted and deduped, never clamped.


levelSpacing? ​

optional levelSpacing?: "log"

Defined in: tools/src/drawings.ts:249

How the levels are spread — see LevelSpacing. Absent is price-linear.


style? ​

optional style?: Partial<LineStyle>

Defined in: tools/src/drawings.ts:85

Per-drawing override — the third layer of the same resolution the toolbox already does (theme variables → toolbox override → this). The same Partial<LineStyle> shape, deliberately: one leaf vocabulary (width·color·dashArray), not a second one.

The values are literals, not theme tokens — a canvas can't read var(), and this is a saved value. A drawing colored by hand keeps its color across a theme switch; absent means "the theme's".

Inherited from ​

DrawingIdentity.style


type ​

type: "fibExtension"

Defined in: tools/src/drawings.ts:242