PROTECTED SOURCE SCRIPT
Swing % Visualizer

Swing % Visualizer is a clean, intuitive indicator that automatically detects pivot points (swing highs and lows) and displays the percentage change between each swing directly on your chart.
█ HOW IT WORKS
The indicator uses pivot detection logic to identify significant turning points in price action. When a new pivot is confirmed, it calculates the percentage move from the previous pivot and displays it as a label:
- Green labels show upward moves (rallies)
- Red labels show downward moves (pullbacks/corrections)
█ FEATURES
- Automatic pivot detection with adjustable sensitivity (Lookback parameter)
- Minimum move filter to ignore small, insignificant swings
- Real-time statistics panel with iOS-inspired design displaying:
- Average Up/Down percentages
- Maximum Up/Down moves
- Total swing count with breakdown
█ USE CASES
- Quickly assess the typical retracement depth of an asset
- Identify changes in volatility by comparing swing sizes
- Understand average rally/pullback percentages for better position sizing
- Compare swing behavior across different timeframes
█ SETTINGS
- Pivot Lookback: Number of bars to confirm a pivot (higher = fewer, more significant pivots)
- Minimum Move %: Filter out swings smaller than this threshold
- Visual customization: Label size, colors, show/hide options
Works on all markets and timeframes.
█ HOW IT WORKS
The indicator uses pivot detection logic to identify significant turning points in price action. When a new pivot is confirmed, it calculates the percentage move from the previous pivot and displays it as a label:
- Green labels show upward moves (rallies)
- Red labels show downward moves (pullbacks/corrections)
█ FEATURES
- Automatic pivot detection with adjustable sensitivity (Lookback parameter)
- Minimum move filter to ignore small, insignificant swings
- Real-time statistics panel with iOS-inspired design displaying:
- Average Up/Down percentages
- Maximum Up/Down moves
- Total swing count with breakdown
█ USE CASES
- Quickly assess the typical retracement depth of an asset
- Identify changes in volatility by comparing swing sizes
- Understand average rally/pullback percentages for better position sizing
- Compare swing behavior across different timeframes
█ SETTINGS
- Pivot Lookback: Number of bars to confirm a pivot (higher = fewer, more significant pivots)
- Minimum Move %: Filter out swings smaller than this threshold
- Visual customization: Label size, colors, show/hide options
Works on all markets and timeframes.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.