OPEN-SOURCE SCRIPT
Sector Breakout + Golden Setup Scanner

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.
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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.