OPEN-SOURCE SCRIPT
ที่อัปเดต:

RSIxBB Crossover With Immediate Imbalance Strategy [LuciTech]

269
Credit:
BADNinja for Engulfing Imbalance -
Engulfing Imbalance

veryfid for ATR SL -
ATR Stop Loss Finder



strategy that integrates RSI crossovers with Bollinger Bands, engulfing candle patterns, and immediate imbalance detection to generate precise trade signals. It overlays entry, stop-loss, and take-profit levels on the chart, featuring customizable risk management and an optional time filter. Tailored for traders seeking momentum-driven entries with structured risk-reward outcomes, it operates across any timeframe and provides clear visual cues for trade execution.

Features

The strategy combines RSI (14-period) crossovers with Bollinger Bands (34-period SMA, 2.0 deviation) applied to RSI, alongside engulfing candle patterns, to pinpoint trade entries. It detects bullish engulfing candles after an RSI cross below the lower band and bearish engulfing candles after a cross above the upper band, ensuring momentum alignment. Risk management includes adjustable risk percentage, risk-reward ratios, and stop-loss options (ATR-based or candle-based), with position sizing tied to equity risk. An optional time filter restricts trades to a user-defined window, highlighted with a background fill. Visual elements include plotted entry, stop-loss, and take-profit lines with customizable colours, plus shaded areas between levels for clarity.

How It Works

Trades are triggered by RSI crossing Bollinger Bands followed by an engulfing candle pattern. A long entry occurs with a bullish engulfing candle after RSI crosses below the lower band, requiring a positive close, while a short entry follows a bearish engulfing candle after RSI crosses above the upper band, requiring a negative close. Position size is calculated from a percentage of equity (default 1%) and stop-loss distance. Stop-loss can be ATR-based (smoothed via RMA, SMA, EMA, or WMA) or candle-based (using the candle’s low/high), adjustable by multiplier or length. Take-profit is set by multiplying the stop-loss distance by the risk-reward ratio (default 3:1). If enabled, the time filter limits trades to the specified window, with visuals updating only for active positions.

Settings

Risk management settings include Risk % (default 1%) for equity risked per trade, Risk:Reward (default 3) for target profit relative to risk, and Stop Loss Type (ATR or Candle) for loss calculation. ATR settings offer ATR Length (default 14), ATR Multiplier (default 1.5), and Smoothing (RMA, SMA, EMA, WMA), with an option to show ATR lines. Candle-based stop-loss uses Candle Length (default 0, meaning 1 candle). Position colours allow customization of Entry/SL/TP lines (default grey, red, green). Time filter settings include Enable Time Filter (default false), Start Hour/Minute (default 14:30), End Hour/Minute (default 15:00), and Fill Background with a custom colour (default grey).

Interpretation

RSI crossovers with Bollinger Bands signal momentum shifts, confirmed by engulfing candles, indicating potential entry points. Stop-loss levels (ATR or candle-based) define risk, while take-profit targets align with the risk-reward ratio, offering a structured exit plan. Shaded areas between entry and stop-loss/take-profit visualize risk and reward zones. ATR lines, if enabled, highlight dynamic stop levels based on volatility. The time filter, when active, focuses trading within key hours, with the background fill emphasizing the active range, making this strategy ideal for disciplined, momentum-focused trading.
เอกสารเผยแพร่
Updated short title.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน