OPEN-SOURCE SCRIPT

Goldilocks Pivot Fractals

3 890
GOLDILOCKS PIVOT FRACTALS [NPR21] - DESCRIPTION

Overview

Goldilocks Pivot Fractals identifies swing highs and lows using fractal pattern recognition with professional visual presentation. This indicator marks potential reversal points where price creates distinct peaks and valleys - perfect pivot points for support, resistance, and market structure analysis.

The "Goldilocks" name reflects the perfectly balanced visual presentation: not too cluttered, not too plain, just right for professional traders. Unlike standard fractal indicators, this edition features fully customizable Buy/Sell labels with tick-based positioning, independent toggle controls, and a high-contrast color scheme optimized for both dark and light chart themes.

What Makes It Unique:
- Professional label system with full customization (colors, sizes, tick-based offsets)
- Toggle labels and arrow shapes independently
- High-contrast default colors (teal/maroon) optimized for maximum visibility
- Clean, trader-friendly interface with intuitive settings
- Works flawlessly on all timeframes and instruments

How to Use

PERIOD ADJUSTMENT & ADJUSTING SENSITIVITY

The Period(s) setting controls how many signals you see:

• Period = 2 (default): Shows more signals, catches smaller price swings - best for day trading and scalping
• Period = 3-4: Shows medium amount of signals, filters out tiny moves - good for swing trading (holding days to weeks)
• Period = 5 or higher: Shows fewer signals, only the biggest turning points - best for long-term position trading
- Simple rule: Lower number = more signals. Higher number = fewer, but stronger signals.

SIGNALS

🟢 "BUY Label" (Down Fractal)
- Marks swing lows and potential support zones
- Look for price bouncing up after the fractal forms
- Use for identifying pullback entry points in uptrends
- Place stops below recent BUY fractals

🔴 "SELL Label" (Up Fractal)
- Marks swing highs and potential resistance zones
- Look for price rejecting down after the fractal forms
- Use for identifying profit targets or short entries
- Place stops above recent SELL fractals

REPAINTING BEHAVIOR

⚠️ This indicator repaints by design. Fractals require N bars on both sides to confirm, so they appear N bars after the actual pivot point. This is normal and ensures accurate pivot identification. Wait for complete confirmation before trading.

TRADING APPLICATIONS

1. Support/Resistance: Mark key price levels for entries and exits
2. Market Structure: higher BUY fractals = uptrend, lower SELL fractals = downtrend
3. Stop Placement: Use recent fractals as logical stop-loss levels
4. Breakout Trading: Monitor price breaking above/below fractal levels
5. Trend Following: Enter on pullbacks to BUY fractals in uptrends
6. Swing Trading: Identify major swing points for position entries

CUSTOMIZATION OPTIONS

• Show BUY/SELL Labels**: Toggle professional text labels on/off
• Show Shapes: Toggle arrow shapes independently
• Offset (ticks): Adjust label distance from price bars for perfect positioning
• Colors: Customize backgrounds (default: teal/maroon) and text (default: white/yellow)
• Label Size: Choose from tiny, small, normal, large, or huge

The high-contrast default colors provide excellent visibility without adjustment, but full customization is available to match any chart theme.

Key Settings

Periods (n) (default: 2): Number of bars on each side of pivot. Lower = more signals, Higher = fewer, stronger signals
Show BUY/SELL Labels (default: ON): Display professional text labels
Show Shapes (default: ON): Display arrow shapes
BUY offset (ticks) (default: 8): Distance BUY labels appear below lows
SELL offset (ticks) (default: 8): Distance SELL labels appear above highs
Colors: Full customization - defaults optimized for visibility
Label size (default: normal): Visual prominence control
Key Features

✅ Professional pivot fractal detection
✅ Fully customizable Buy/Sell labels
✅ Independent toggle for labels and shapes
✅ Tick-based offset positioning
✅ High-contrast color scheme
✅ Works on all timeframes and instruments
✅ Clean, intuitive interface
✅ Adjustable sensitivity
✅ Perfect for support/resistance identification
✅ Ideal for market structure analysis

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.