PROTECTED SOURCE SCRIPT
Swing Action by Sila

Swing Action v1.0 — Price Action Suite for Intraday Traders
Overview
Swing Action overlays Williams Fractals, Swing Points, Smart Fibonacci, and Trend Lines that are derived directly from Swing Points. It’s built for clarity and speed on intraday charts, with defaults tuned for 5-minute timeframes while remaining flexible across markets and timeframes.
What you get
- Fractals: 3/5-bar Williams Fractals, gated by a selectable time range.
- Swing Points: clear H/L labels with optional horizontal levels, auto-delete on cross, and capped recent points.
- Trend Lines v2: trend lines constructed from Swing Points (no separate pivots), with line extension options.
- Smart Fibonacci: compact Fibonacci suite with a Retracement Guide Meter to quickly gauge pullbacks.
- Range Opt: focus plotting to Last 24 hours, Past 7/30/90 days, This week, This month, or YTD.
How it works
- Pivots are detected using robust ta.pivot functions.
- Swing highs/lows are stored as labels; optional horizontal lines extend until crossed.
- Uptrend lines connect pairs of later higher swing lows; downtrend lines connect pairs of later lower swing highs.
- Smart Fibonacci monitors swings and draws levels; an optional Guide Meter shows retracement magnitude.
Quick Settings Guide
- Williams Fractals
- Enable Fractals (on by default)
- Fractal Bars: 3 or 5 (default 5)
- Range Opt: default Last 24 hours
- Swing Points
- Length: default 3
- Maximum Points: default 20
- Lines: off by default; Labels: off by default (enable as needed)
- Smart Fibonacci
- Enable: off by default
- How Far (Depth): default 14
- Wave Size (Deviation Ratio): default 2.5
- Guide Meter: on by default
- Label offset: default 12
- Trend Lines v2
- Enable: on by default
- Number of Swing Points to use: default 3
- Colors: 6 uptrend + 6 downtrend color pickers (cycle by creation order)
- Max Lines: default 3, Line Width: default 1
- Extend to current bar: on, Extend right (infinite): on
Recommended for 5-minute charts
- Swing Points Length 3
- Smart Fibonacci Depth 14, Wave Size 2.5, Guide Meter enabled
- Trend Lines enabled with infinite right extension
- Range Opt: Last 24 hours for clean intraday focus
Best practices
- Increase Length on noisier instruments or lower timeframes.
- Reduce Max Lines to declutter; increase Number of Swing Points to use to require stricter pair selection.
- Turn off Smart Fibonacci when focusing solely on structure and trend lines.
Behavior and repainting notes
- Pivot labels appear after the central bar confirms; this is normal and not “repainting” of history.
- Trend lines extend as new bars print if extension is enabled; the start/anchor points do not change.
- Crossed horizontal lines are styled or deleted on confirmation according to settings.
Compatibility
- Works across timeframes and instruments; defaults tuned for 5-minute intraday trading.
- Overlay indicator (plots on price chart).
Change highlights
- Trend Lines now derived from Swing Points; 6 colors per side with cycling.
- Added Extend right (infinite) option.
- Grouped color inputs for a compact UI.
- Tuned defaults for intraday usage.
Tags
#Fractals #SwingPoints #TrendLines #Fibonacci #PriceAction #ICT #OrderFlow #Intraday #Scalping #DayTrading #TradingView #PineScript
Disclaimer
This script is for educational purposes only. Trading involves risk. Use at your own discretion.
Overview
Swing Action overlays Williams Fractals, Swing Points, Smart Fibonacci, and Trend Lines that are derived directly from Swing Points. It’s built for clarity and speed on intraday charts, with defaults tuned for 5-minute timeframes while remaining flexible across markets and timeframes.
What you get
- Fractals: 3/5-bar Williams Fractals, gated by a selectable time range.
- Swing Points: clear H/L labels with optional horizontal levels, auto-delete on cross, and capped recent points.
- Trend Lines v2: trend lines constructed from Swing Points (no separate pivots), with line extension options.
- Smart Fibonacci: compact Fibonacci suite with a Retracement Guide Meter to quickly gauge pullbacks.
- Range Opt: focus plotting to Last 24 hours, Past 7/30/90 days, This week, This month, or YTD.
How it works
- Pivots are detected using robust ta.pivot functions.
- Swing highs/lows are stored as labels; optional horizontal lines extend until crossed.
- Uptrend lines connect pairs of later higher swing lows; downtrend lines connect pairs of later lower swing highs.
- Smart Fibonacci monitors swings and draws levels; an optional Guide Meter shows retracement magnitude.
Quick Settings Guide
- Williams Fractals
- Enable Fractals (on by default)
- Fractal Bars: 3 or 5 (default 5)
- Range Opt: default Last 24 hours
- Swing Points
- Length: default 3
- Maximum Points: default 20
- Lines: off by default; Labels: off by default (enable as needed)
- Smart Fibonacci
- Enable: off by default
- How Far (Depth): default 14
- Wave Size (Deviation Ratio): default 2.5
- Guide Meter: on by default
- Label offset: default 12
- Trend Lines v2
- Enable: on by default
- Number of Swing Points to use: default 3
- Colors: 6 uptrend + 6 downtrend color pickers (cycle by creation order)
- Max Lines: default 3, Line Width: default 1
- Extend to current bar: on, Extend right (infinite): on
Recommended for 5-minute charts
- Swing Points Length 3
- Smart Fibonacci Depth 14, Wave Size 2.5, Guide Meter enabled
- Trend Lines enabled with infinite right extension
- Range Opt: Last 24 hours for clean intraday focus
Best practices
- Increase Length on noisier instruments or lower timeframes.
- Reduce Max Lines to declutter; increase Number of Swing Points to use to require stricter pair selection.
- Turn off Smart Fibonacci when focusing solely on structure and trend lines.
Behavior and repainting notes
- Pivot labels appear after the central bar confirms; this is normal and not “repainting” of history.
- Trend lines extend as new bars print if extension is enabled; the start/anchor points do not change.
- Crossed horizontal lines are styled or deleted on confirmation according to settings.
Compatibility
- Works across timeframes and instruments; defaults tuned for 5-minute intraday trading.
- Overlay indicator (plots on price chart).
Change highlights
- Trend Lines now derived from Swing Points; 6 colors per side with cycling.
- Added Extend right (infinite) option.
- Grouped color inputs for a compact UI.
- Tuned defaults for intraday usage.
Tags
#Fractals #SwingPoints #TrendLines #Fibonacci #PriceAction #ICT #OrderFlow #Intraday #Scalping #DayTrading #TradingView #PineScript
Disclaimer
This script is for educational purposes only. Trading involves risk. Use at your own discretion.
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 However, you can use it freely and without any limitations – learn more here.
免責事項
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.
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 However, you can use it freely and without any limitations – learn more here.
免責事項
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.