/** * RedK Volume-Accelerated Directional Energy Ratio (VADER) * * Pine: R = (highest(2) - lowest(2)) / 2 * sr = change(close) / R, clamped to [-1, 1] * c = sr * vola (volume acceleration) * dem = f_derma(c_plus, length) / avg_vola * sup = f_derma(c_minus, length) / avg_vola * adp = 100 * wma(dem, DER_avg), asp = 100 * wma(sup, DER_avg) * anp_s = wma(adp - asp, smooth) * * Reference: TradingView "RedK VADER v4.0" by RedKTrader */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface RedKVADERInputs { length: number; DER_avg: number; MA_Type: string; smooth: number; showSenti: boolean; senti: number; vCalc: string; vlookbk: number; } export declare const defaultInputs: RedKVADERInputs; 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; export declare const RedKVADER: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: RedKVADERInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=redk-vader.d.ts.map