PROTECTED SOURCE SCRIPT
Swing High/Low with Trend & BOS

Swing High/Low Indicator with Multi-Timeframe Trend Analysis
This indicator identifies swing highs and swing lows on the chart with visual labels and connecting lines, plus provides trend analysis across multiple timeframes.
FEATURES:
- Swing High Detection: Green "H" labels mark pivot highs with customizable lookback periods
- Swing Low Detection: Red "L" labels mark pivot lows with customizable lookback periods
- Connection Lines: Visual lines connect consecutive swing points for easy trend visualization
- Multi-Timeframe Panel: Displays trend direction (Bullish/Bearish) for 1H and 4H timeframes
- Break of Structure (BOS): Shows whether price has recently broken key levels on higher timeframes
SETTINGS:
- Left Bars: Number of bars to the left for pivot detection (default: 10)
- Right Bars: Number of bars to the right for pivot detection (default: 10)
- Show Connection Lines: Toggle to show/hide lines connecting swing points
USAGE:
Use this indicator to identify key swing points for support/resistance levels, trend analysis, and potential reversal zones. The multi-timeframe panel helps confirm trend direction across different time horizons.
NOTES:
- Works best on active markets with sufficient price movement
- Swing points are confirmed after the specified number of right bars
- BOS detection uses EMA crossovers and recent high/low breaks
This indicator identifies swing highs and swing lows on the chart with visual labels and connecting lines, plus provides trend analysis across multiple timeframes.
FEATURES:
- Swing High Detection: Green "H" labels mark pivot highs with customizable lookback periods
- Swing Low Detection: Red "L" labels mark pivot lows with customizable lookback periods
- Connection Lines: Visual lines connect consecutive swing points for easy trend visualization
- Multi-Timeframe Panel: Displays trend direction (Bullish/Bearish) for 1H and 4H timeframes
- Break of Structure (BOS): Shows whether price has recently broken key levels on higher timeframes
SETTINGS:
- Left Bars: Number of bars to the left for pivot detection (default: 10)
- Right Bars: Number of bars to the right for pivot detection (default: 10)
- Show Connection Lines: Toggle to show/hide lines connecting swing points
USAGE:
Use this indicator to identify key swing points for support/resistance levels, trend analysis, and potential reversal zones. The multi-timeframe panel helps confirm trend direction across different time horizons.
NOTES:
- Works best on active markets with sufficient price movement
- Swing points are confirmed after the specified number of right bars
- BOS detection uses EMA crossovers and recent high/low breaks
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun – pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun – pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.