Skip to content
EliteChart

KagiSegment

Documentation


Documentation / @elitechart/core / KagiSegment

Defined in: series/kagi.ts:67

One Kagi segment. Extends Bar so the existing painter pipeline (legend, last-price pill) consumes it unchanged.

Example

code
const segments: ReadonlyArray<KagiSegment> = computeKagi(bars, { reversalPercent: 4 });

Extends

Properties

close

code
readonly close: Price;

Defined in: data/types.ts:33

Inherited from

Bar.close


direction

code
readonly direction: KagiDirection;

Defined in: series/kagi.ts:69

Direction of this segment: up = close > open; down = close < open.


high

code
readonly high: Price;

Defined in: data/types.ts:31

Inherited from

Bar.high


low

code
readonly low: Price;

Defined in: data/types.ts:32

Inherited from

Bar.low


open

code
readonly open: Price;

Defined in: data/types.ts:30

Inherited from

Bar.open


thickness

code
readonly thickness: KagiThickness;

Defined in: series/kagi.ts:71

yang = thick, yin = thin. See module docblock for the latch rule.


time

code
readonly time: TimestampMs;

Defined in: data/types.ts:29

Inherited from

Bar.time


volume

code
readonly volume: Volume;

Defined in: data/types.ts:34

Inherited from

Bar.volume