/** * Envelope RSI - Buy Sell Signals * * Price envelope overlay: basis = EMA or SMA of hl2, upper = basis*(1+pct), lower = basis*(1-pct). * Buy/Sell signals based on price crossing envelope bands + RSI filter. * TP/SL bands appear for 2 bars after each signal as green (TP) and red (SL) fills. * * Reference: TradingView "ENVELOPE - RSI - Buy Sell Signals" by Saleh_Toodarvari */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface EnvelopeRSIInputs { envelopeLen: number; envelopePct: number; exponential: boolean; rsiLen: number; overboughtRSI: number; oversoldRSI: number; tpPercent: number; slPercent: number; } export declare const defaultInputs: EnvelopeRSIInputs; 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 EnvelopeRSI: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: EnvelopeRSIInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=envelope-rsi.d.ts.map