/** * HalfTrend * * ATR-based trend detection with amplitude-filtered state transitions. * Tracks highest lows / lowest highs over the amplitude period, flips direction * when SMA of high/low crosses these extremes and price confirms. * * Reference: TradingView "HalfTrend" by everget */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface HalfTrendInputs { amplitude: number; channelDeviation: number; showArrows: boolean; showLabels: boolean; } export declare const defaultInputs: HalfTrendInputs; 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 HalfTrend: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: HalfTrendInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=half-trend.d.ts.map