/** * 72s: Adaptive Hull Moving Average+ * * Dynamic HMA with adaptive length based on volatility or volume. * When volatility is high (ATR(14) > ATR(46)) or volume breaks above average, * the HMA length shrinks toward minLength; otherwise it expands toward maxLength. * A slope angle is calculated to color the MA: * - Strong trend (|slope| >= flat threshold) + active charger = bright color * - Strong trend + inactive charger = light color * - Consolidation (|slope| < flat threshold) = yellow * Also plots a faster minor HMA+ with the same adaptive logic. * * Reference: TradingView "72s: Adaptive Hull Moving Average+" by io72signals */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface AdaptiveHullMAInputs { charger: string; minLength: number; maxLength: number; flat: number; showMinor: boolean; minorMin: number; minorMax: number; showZone: boolean; mult: number; showSignals: boolean; useBg: boolean; } export declare const defaultInputs: AdaptiveHullMAInputs; 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 AdaptiveHullMA: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: AdaptiveHullMAInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=adaptive-hull-ma.d.ts.map