/** * PPO Divergence Alerts * * Percentage Price Oscillator with smoothed signal, bottom/top circles, * and 4 types each of bearish (orange) and bullish (purple) divergence circles. * Source defaults to open. Uses SMA smoother (default 2) on PPO. * * Reference: TradingView "PPO Divergence Alerts" community indicator */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface PPOAlertsInputs { fastLength: number; slowLength: number; smoother: number; divLookbackPeriod: number; longTermDiv: boolean; src: SourceType; } export declare const defaultInputs: PPOAlertsInputs; 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 PPOAlerts: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: PPOAlertsInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ppo-alerts.d.ts.map