INVITE-ONLY SCRIPT

Pattern Scanner — RealTime By josh

36
Pattern Scanner — Real-Time (Lines Only)

This study draws line outlines of popular price patterns in real time using swing pivots (no marketing claims, no signals).
It focuses on visual structure only—use it as an educational aid to spot potential areas of interest.

What it shows

Double Top / Double Bottom (neckline only, optional pullback check)

Head & Shoulders / Inverse H&S (neckline projection)

Wedges & Symmetrical Triangles (upper/lower guides from recent swings)

Flags / Parallel Channels (top & bottom rails if slopes are near-parallel)

Consolidation Range (simple recent high/low band)

Optional RSI Divergence filter (basic confirmation; off by default)

How it works (high level)

Builds swing points using left/right pivot lengths.

Draws straight guide lines between recent swing pairs.

Optional “equality tolerance” (in %) for double tops/bottoms.

Optional “pullback after break” rule to reduce first-touch breaks.

No labels, arrows, targets, or profits: only lines for study/visualization.

Inputs you can tune

Pivot lengths, equality tolerance, minimum touches & lookback window

Pullback rule and tolerance (% of range)

Line thickness for major/minor structures

Optional RSI divergence check (length & source)

Good to know

Real-time detection can update while bars are forming; confirmed pivots require the right-side length to complete.

This tool does not generate trade advice. Combine with your own risk management and additional analysis.

Results may vary across symbols/timeframes due to data and volatility.

License: Pine Script® v5. Educational use only.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.