Type Alias: MovingAverageOverlay
type MovingAverageOverlay = {
color?: string | number;
kind: "sma" | "ema";
length: number;
source?: MASource;
width?: number;
};
Defined in: types/src/index.ts:278
A moving-average overlay line drawn on the price pane. Provide an array of
these via movingAverages to render a ribbon of SMA/EMA lines.
Properties
color?
optional color?: string | number;
Defined in: types/src/index.ts:286
Line color (hex string or packed ARGB number).
kind
kind: "sma" | "ema";
Defined in: types/src/index.ts:280
'sma' (simple) or 'ema' (exponential).
length
length: number;
Defined in: types/src/index.ts:282
Lookback in candles.
source?
optional source?: MASource;
Defined in: types/src/index.ts:284
Price source. Default 'close'.
width?
optional width?: number;
Defined in: types/src/index.ts:288
Stroke width in px. Default 1.5.