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)
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.