MovingAverageOverlay
type MovingAverageOverlay = {
color?: string | number;
maType: MAKind;
period: number;
source?: MASource;
width?: number;
};
Source: types/src/index.ts:529
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;
Source: types/src/index.ts:537
Line color (hex string or packed ARGB number).
maType
maType: MAKind;
Source: types/src/index.ts:531
Averaging for this line (MAKind).
period
period: number;
Source: types/src/index.ts:533
Lookback in candles.
source?
optional source?: MASource;
Source: types/src/index.ts:535
Price source (MASource). Default 'close'.
width?
optional width?: number;
Source: types/src/index.ts:539
Stroke width in px. Default 1.5.