OPEN-SOURCE SCRIPT
ABC/D

Every bar gets a direction (up/down) from higher-highs/lower-lows — these build the Gann ZigZag legs.
Consecutive bars trapped inside a prior bar's range = Inside Bar ("Hoagie"); a second mini-ZigZag runs inside it.
U-Turn engine watches legs: trend flips only when price breaks the confirm level → defines trendDir.
ABC = 3-leg pullback in confirmed trend (A extreme > B extreme, C shallower) → continuation signal at C.
Variants: E-ABC (no U-Turn yet, pre-A pivot beyond C), L-ABC (late, after U-Turn), EQ-ABC (tick-equal A/B extremes).
I-prefix = same pattern found on the inner ZigZag, fully inside one Inside Bar (I-ABC, I-EQ-ABC…).
I-B-ABC = the Inside Bar itself IS the hidden B-leg between main legs A and C; E-I-B version = early variant.
ABCD = 4 nested shrinking legs in trend direction → signal at D.
Market structure: every ZigZag pivot stored as a level; close-through = BOS (or CHoCH if trend flips), wick-only = Sweep.
Multi-level: one candle breaking several stored levels fires one signal per level, on the exact breaker bar.
Same structure engine runs inside each Inside Bar → I-BOS / I-CHoCH / I-Sweep / I-U-Turn.
Flags: after an impulse pole, pivots A→B→A2→B2; ASC = HH+HL (bullish), DSC = mirror, BRD = expanding range.
Quad Stochastic: 4 stochastics aligned ≥80/≤20 shade background (extreme/capitulation zones + gap counters in table).
No60 model (optional): counter-bar + EMA filter entry arrows with confirmation dots.
Info table shows multi-TF trend grid, last ABC/ABCD details, Quad rotation stats.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.