/** * RedK Trader Pressure Index (TPX v5.0) * * Measures bull/bear pressure from high/low changes relative to * a 2-bar range baseline. Bull pressure = how far bulls pull * highs and lows up; bear pressure = how far bears push them down. * Net pressure (TPX) is the WMA-smoothed difference. * v3.0 adds optional pre-smoothing; v4.0 adds dominant pressure signals; * v5.0 adds TPX swing alerts. * * Reference: TradingView "RedK Trader Pressure Index (TPX)" by RedKTrader */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface RedKTPXInputs { length: number; smooth: number; controlLevel: number; preSmooth: boolean; preSmoothLen: number; slevelOn: boolean; slevel: number; } export declare const defaultInputs: RedKTPXInputs; 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 RedKTPX: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: RedKTPXInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=redk-tpx.d.ts.map