/** * Support Resistance Channels * * Pivot-based S/R channel detection. Collects pivot highs/lows, * groups nearby pivots into channels based on max width. * Each channel is scored by pivot count + price touches. * Top N strongest channels are displayed as boxes. * Color: red (resistance), green (support), gray (inside). * * Reference: TradingView "Support Resistance Channels" by LonesomeTheBlue */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData, BoxData } from '../types'; export interface SupportResistanceChannelsInputs { prd: number; ppsrc: 'High/Low' | 'Close/Open'; channelW: number; minStrength: number; maxNumSR: number; loopback: number; } export declare const defaultInputs: SupportResistanceChannelsInputs; 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 & { boxes: BoxData[]; markers: MarkerData[]; }; export declare const SupportResistanceChannels: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: SupportResistanceChannelsInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=support-resistance-channels.d.ts.map