OPEN-SOURCE SCRIPT
Compact Swing Leg Tracker (Strict, Static PB, Compact Table)

Simple Swing Leg Tracker is the evolution of the original Simple Swing indicator — rebuilt for smoother leg tracking, cleaner visuals, and added context. It automatically identifies up and down legs in real time, plotting an anchor line at the prior swing point and a live line at the current extreme. The direction flips automatically when price breaks beyond the opposite swing, keeping the chart aligned with the active trend.
It tracks leg size, live pullback %, and the deepest (static) pullback so far in the leg. A compact two-row stats panel displays the current leg metrics on top and the most recent up- and down-leg sizes beneath for quick reference.
Highlights:
Evolution of the Simple Swing indicator
Auto-flip between up/down legs on swing breaks
Real-time pullback and static pullback tracking
Displays last completed up/down leg sizes
Minimal two-line layout (swing + live extreme)
Compact color-coded stats table
It tracks leg size, live pullback %, and the deepest (static) pullback so far in the leg. A compact two-row stats panel displays the current leg metrics on top and the most recent up- and down-leg sizes beneath for quick reference.
Highlights:
Evolution of the Simple Swing indicator
Auto-flip between up/down legs on swing breaks
Real-time pullback and static pullback tracking
Displays last completed up/down leg sizes
Minimal two-line layout (swing + live extreme)
Compact color-coded stats table
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.