/** * Pekipek's PPO Divergence BETA * * Percentage Price Oscillator smoothed with SMA, plus pivot-based divergence * detection including long-term divergences. * * PPO = ((EMA_fast - EMA_slow) / EMA_slow) * 100, then d = SMA(PPO, smoother). * * Display elements from Pine source: * - plot(d) white line * - plot(bulldiv) "Tops" aqua circles at PPO bottoms (offset -1) * - plot(beardiv) "Bottoms" red circles at PPO tops (offset -1) * - Bearish Divergence orange circles * - Bullish Divergence purple circles * * Reference: TradingView "Pekipek's PPO Divergence BETA" by Pekipek */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface PPODivergenceInputs { fastLength: number; slowLength: number; smoother: number; divLookbackPeriod: number; longTermDiv: boolean; src: SourceType; } export declare const defaultInputs: PPODivergenceInputs; 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 PPODivergence: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: PPODivergenceInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ppo-divergence.d.ts.map