/** * Entry Points * * Overlay indicator with buy/sell signals based on EMA touch logic. * No visible EMA plot on chart - only markers. * * Buy: close > ema AND low <= ema AND open > ema, OR open < ema AND close > ema * (price touches EMA from above = buy signal) * Sell: close < ema AND high >= ema AND open < ema, OR open > ema AND close < ema * (price touches EMA from below = sell signal) * * Reference: TradingView "Entry points" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface EntryPointsInputs { period: number; } export declare const defaultInputs: EntryPointsInputs; 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 EntryPoints: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: EntryPointsInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=entry-points.d.ts.map