OPEN-SOURCE SCRIPT
Updated

Current Swing

392
The Current Swing indicator automatically identifies the most recent valid Swing High and Swing Low points on a higher timeframe (e.g., 3m) and projects key Fibonacci retracement levels directly onto your lower timeframe chart (e.g., 1m).

Pullback Depth Analysis: Maps out the 0%, 40%, 50%, 60%, and 100% levels of the active swing range to gauge market retracement depth.

Trend Continuation Insight: Helps you instantly assess whether price is holding premium/discount zones or pulling back too deeply, indicating whether a continuation is likely or if the structure is failing.

Sweep Protection: Filters out noise by only plotting confirmed swings that have remained unswept for a customizable period, keeping your chart clean and focused on valid structure.
Release Notes
This update introduces zero-lag realtime range expansion, ensuring the 0% and 100% levels dynamically anchor directly to the exact bar where each swing point originates instead of lagging behind.
Release Notes
The order of 40% + 60% were corrected.
Release Notes
The script was updated to ensure minor internal pivot highs no longer overwrite the major swing high during an ongoing move. Additionally, direction detection was fixed so that 0%, 100%, 40%, and 60% levels automatically flip and align correctly based on whether the market structure is bullish or bearish.
Release Notes
This update introduces an ATR-based minimum range filter and longer pivot lookbacks to effectively ignore minor price noise and lock onto true macro market structure swings.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.