PROTECTED SOURCE SCRIPT
Swing ID by Mehroz Khan

Identifies trading opportunities within a Dealing Range by detecting Swing Highs and Swing Lows and generating precise buy/sell signals.
Buy Signal: Triggered when a Swing Low forms in the discount zone (lower 50% of the Dealing Range) and the fourth candle closes above the third candle’s high, indicating a potential bullish reversal.
Sell Signal: Triggered when a Swing High forms in the premium zone (upper 50% of the Dealing Range) and the fourth candle closes below the third candle’s low, signaling a potential bearish reversal.
Dealing Range: Defined by the highest high and lowest low over a user-defined lookback period (default: 20 bars), with a midpoint separating discount and premium zones.
Visuals: Plots Swing Highs (red triangles), Swing Lows (green triangles), range boundaries (blue dashed lines), midpoint (gray dashed line), and signals (green/red triangles with “BUY”/“SELL” labels).
Table: Displays range high, low, and midpoint in a top-right table for quick reference.
Alerts: Supports alerts for buy/sell signals, ideal for real-time trading.
Usage: Best on 1H, 4H, or daily charts. Combine with ICT concepts like Order Blocks or kill zones (e.g., London open) for high-probability setups.
Adjust lookback periods for sensitivity and use stop-losses below Swing Lows (buys) or above Swing Highs (sells)
Buy Signal: Triggered when a Swing Low forms in the discount zone (lower 50% of the Dealing Range) and the fourth candle closes above the third candle’s high, indicating a potential bullish reversal.
Sell Signal: Triggered when a Swing High forms in the premium zone (upper 50% of the Dealing Range) and the fourth candle closes below the third candle’s low, signaling a potential bearish reversal.
Dealing Range: Defined by the highest high and lowest low over a user-defined lookback period (default: 20 bars), with a midpoint separating discount and premium zones.
Visuals: Plots Swing Highs (red triangles), Swing Lows (green triangles), range boundaries (blue dashed lines), midpoint (gray dashed line), and signals (green/red triangles with “BUY”/“SELL” labels).
Table: Displays range high, low, and midpoint in a top-right table for quick reference.
Alerts: Supports alerts for buy/sell signals, ideal for real-time trading.
Usage: Best on 1H, 4H, or daily charts. Combine with ICT concepts like Order Blocks or kill zones (e.g., London open) for high-probability setups.
Adjust lookback periods for sensitivity and use stop-losses below Swing Lows (buys) or above Swing Highs (sells)
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。