INVITE-ONLY SCRIPT

Pattern Scanner — RealTime By josh

39
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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。