/** * Trend Trigger Factor (TTF) * * Measures buying/selling pressure by comparing current vs past high/low ranges. * TTF = 100 * (BP - SP) / (0.5 * (BP + SP)) * BP = highest(high, len) - lowest(low, len)[len] * SP = highest(high, len)[len] - lowest(low, len) * * Reference: TradingView "Trend Trigger Factor [LazyBear]" */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface TrendTriggerFactorInputs { length: number; buyTrigger: number; sellTrigger: number; } export declare const defaultInputs: TrendTriggerFactorInputs; 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 TrendTriggerFactor: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TrendTriggerFactorInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=trend-trigger-factor.d.ts.map