API REFERENCE
IndicatorDefinition
IndicatorDefinition 타입 선언과 관련 타입입니다. 선택 필드는 ?로 표시됩니다.
타입 선언
export interface IndicatorDefinition {
readonly kind: string;
readonly label: string;
readonly placement: IndicatorPlacement;
readonly defaults: Readonly<Record<string, number>>;
readonly outputs: ReadonlyArray<IndicatorOutputSpec>;
readonly bands?: ReadonlyArray<IndicatorBandSpec>;
readonly compute: (bars: ReadonlyArray<StockBar>, params: Record<string, number>) => IndicatorColumns;
readonly guides?: ReadonlyArray<number>;
readonly guideBand?: readonly [number, number];
readonly computeLevels?: (
bars: ReadonlyArray<StockBar>,
from: number,
to: number,
params: Record<string, number>,
) => IndicatorLevel[];
}