OPEN-SOURCE SCRIPT

Williams Fractals / Goldilocks [NPR21]

221
📊 Williams Fractals — Goldilocks [NPR21]

Description

Williams Fractals — Goldilocks [NPR21] highlights confirmed swing highs and lows using a refined Williams Fractals approach that balances signal frequency and clarity. BUY and SELL labels mark structurally important pivot points while avoiding chart clutter. The Periods (n) setting controls how often signals appear—lower values produce more signals, higher values filter noise. Signals are non-repainting and work on any instrument and any timeframe. Best used as a market structure and confirmation tool.

🔧 How to Use (Quick Guide)

BUY labels = confirmed swing lows (potential support / pullback areas)
SELL labels = confirmed swing highs (potential resistance / exhaustion areas)
Use for structure and confirmation, not as a standalone entry system
Combine with trend direction, key levels, VWAP/EMAs, volume, or momentum

⏱️ Recommended Periods by Timeframe

The Periods (n) setting determines how many and how often labels print.

1m–3m (Scalping): n = 2
More frequent signals; captures short-term swings.

5m–15m (Intraday): n = 8-9
Balanced sensitivity; filters minor noise.

30m–1h+ (HTF/Swing): n = 15-21
Fewer, stronger pivots; highlights major structure.

Rule of thumb: Lower timeframe → lower n. Higher timeframe → higher n.

🌍 Markets & Timeframes

Not futures-only. Works well on stocks, ETFs, forex, crypto, indices, and any timeframe. Adjust n to match the market’s pace.

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.