Pattern Scanner — RealTime By josh

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.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact JOSHSniper4569 directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact JOSHSniper4569 directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.