PulseHub
OPEN-SOURCE SCRIPT

RTF Fib Extensions

300
RTF Fib Extensions — Auto Swing Fibonacci Retracements & Extensions

Automatic fib tool that detects the most recent swing high/low over a configurable lookback and plots retracement and extension levels off it — no manual anchoring required.

How it works: the indicator scans the last N bars (default 100) for the swing high and low, then determines direction based on which one is more recent. If the low formed after the high, it reads the move as bullish and projects levels upward; if the high formed after the low, it reads bearish and projects downward. Levels update live on every bar unless locked.

Features:

Auto swing detection with adjustable lookback
Auto bullish/bearish direction labeling
Retracements: 0, 0.236, 0.382, 0.5, 0.618, 0.786, 1
Extensions: 1.618, 2.618
Lock/Freeze toggle to pin levels to the current swing instead of recalculating every bar
Adjustable label side (left/right), offset, and text size for both level labels and the direction badge
Full color customization per level

How to use it: drop it on any chart/timeframe. Increase the lookback for higher-timeframe swings, decrease it for scalping. Use Lock once you're happy with the detected swing so levels stop shifting as new bars form. Extensions (1.618, 2.618) are the key zones to watch for continuation targets in the direction of the labeled trend; retracements mark pullback zones for re-entry.

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 PulseWire. Read more in the Terms of Use.