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.
สคริปต์เฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับการอนุมัติจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องร้องขอและได้รับอนุญาตก่อนจึงจะสามารถใช้งานได้ โดยปกติจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ JOSHSniper4569 โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์เฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับการอนุมัติจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องร้องขอและได้รับอนุญาตก่อนจึงจะสามารถใช้งานได้ โดยปกติจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ JOSHSniper4569 โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา