OPEN-SOURCE SCRIPT

Sector Breakout + Golden Setup Scanner

465
Visual Meaning Rarity Light blue background BASING — consolidation forming Common🟠 Diamond "ER" EARLY ROTATION — RS strong, price still in base Uncommon🟢 Triangle "BO" EMERGING BREAKOUT — pivot break + RS + volume Uncommon🟢 Large triangle "CBO"CONFIRMED BREAKOUT — full Stage-2 break Rare🟡 Yellow background + huge "GOLDEN SETUP" label All 10 strict criteria met Very rare🟠 Small "8+" triangle Near-Golden (8 of 10) — watchlist trigger Uncommon
The key insight: GOLDEN SETUP is a special case of EARLY ROTATION. It fires only when the early signal is also passing all 10 strict tests. Most Early Rotations won't qualify as Golden Setups — that's the point.
The Unified Label Shows Everything
STAGE: EARLY ROTATION (or GOLDEN SETUP if all 10 pass)
Score: 72/100 Pass: 9/10

==========================
TIER 1 - RS LEADERSHIP
[Y] RS at New High
[Y] RS Slope 8.45% (need >5%)
[Y] Mansfield 4.21 (need >0)
[N] Accel 1M=4.5% / 3M=18.2% <- this is why it's not Golden yet

==========================
TIER 2 - BASE QUALITY
[Y] Valid Base Structure
[Y] ATR Contracting
[Y] Base Range 11.5% (need 8-15%)
[Y] Dist Pivot -1.20% (need -2 to 0%)

==========================
TIER 3 - CONFIRMATION
[Y] Volume 1.82x (need >1.5x)
[Y] Stage-2 Trend
[Y] Score >= 65

==========================
Pivot: 23,450.00
Stop: 21,200.00
VCP Pattern: YES
Color of the label box itself tells you status at a glance:

Yellow box = Golden Setup ACTIVE
Green box = Confirmed Breakout
Lime box = Emerging Breakout
Orange box = Early Rotation or Near-Golden (8+/10)
Dark box = Waiting / Basing / Trending

How to Read It in Practice
Scenario A — Stage shows "EARLY ROTATION" but Golden = 6/10:
Setup is forming but missing key criteria. Watchlist only — don't size in yet.
Scenario B — Stage shows "EARLY ROTATION" + Golden = 9/10:
Almost there. Identify the one missing criterion (label will tell you). When it flips, this is your high-conviction entry.
Scenario C — Stage shows "GOLDEN SETUP" (Pass 10/10):
This is the trade. Yellow background, huge label on chart, alert fires. Score will be 70+. Take the trade with stops at the Support level shown.
Scenario D — Stage shows "EMERGING BO" but Golden was never triggered:
The breakout fired without the strict pre-conditions. Lower conviction — could work but no Golden-grade signal beforehand.
Scenario E — Stage shows "CONFIRMED BO" + Golden was triggered earlier:
You missed the early entry. The Confirmed signal here is "extension" territory — still valid but lower R:R.
Alert Strategy
Set these alerts in priority order:

GOLDEN SETUP TRIGGERED — highest priority, fires rarely
Near Golden Setup (8+/10) — gives you early heads-up
EARLY ROTATION — catches setups that may not become Golden but still tradeable
CONFIRMED BREAKOUT — entry confirmation if you missed the early signal

Quick Reminders

Sector indices (CNXFMCG, CNXPHARMA, etc.): Turn OFF "Require Volume Surge" — no volume data
ETFs and individual stocks: Leave volume check ON
Weekly timeframe is the sweet spot for this framework — daily produces too many noisy signals; monthly too few
The Golden Setup is designed to be rare (maybe 1-2 sectors at a time across the entire NSE universe). If you see it firing on many sectors simultaneously, the broader market is in strong accumulation — itself a useful signal.

This is now your complete tactical scanner: stage detection for context, Golden Setup for conviction trades, all on one chart with no toggling between scripts.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.