/** * Tops/Bottoms * * CVI-based overbought/oversold detection. * Plots constant bull/bear threshold lines and star markers * when price exits the bull or bear zone. * * CVI = (close - SMA(hl2, length)) / (SMA(ATR(length), length) * sqrt(length)) * * Reference: TradingView "Tops/Bottoms" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface TopsBottomsInputs { length: number; bull: number; bear: number; } export declare const defaultInputs: TopsBottomsInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult & { markers: MarkerData[]; }; export declare const TopsBottoms: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TopsBottomsInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=tops-bottoms.d.ts.map