PROTECTED SOURCE SCRIPT

Swing % Visualizer

93
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.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.