PROTECTED SOURCE SCRIPT
Telah dikemas kini Mark Minervini Stage Analysis Ribbon

This Pine Script v6 indicator—“Mark Minervini Stage Analysis Ribbon” can overlay your chart with a dynamic, gradient-colored ribbon and markers that implement Minervini’s SEPA/Stage Analysis:
Stages:
Consolidation: Price hugging the 200-day SMA (blue bars, fading in as consolidation persists).
Accumulation: Price above all three SMAs (50,150,200), 200-day SMA trending up, and SMA alignment (green bars, fading in; then fading out if MACD crosses down).
Distribution: Any bars not in Accumulation, Capitulation, or Consolidation (orange bars with fade).
Capitulation: Price below 200-day SMA with a down-sloping 200-day SMA (red bars with fade).
Gradient Fade: Each stage’s bar color fades in over gradientDays when it begins, and accumulation also fades out over gradientDays if the MACD line crosses below its signal line.
Accumulation Dot: A small blue dot appears beneath the candle once accumulation has remained intact for you-set accumDays (default 20).
52-Week Highlight: The background is shaded yellow whenever price is simultaneously ≥ minLowPct % above its 52-week low and within maxHighPct % of its 52-week high.
User Inputs:
• SMA lengths (50/150/200) & minimum SMA-slope threshold
• ATR length for consolidation buffer
• 52-week low/high percentage thresholds
• MACD fast/slow/signal lengths for fade-out trigger
• accumDays and gradientDays to tune dot timing and fade speed
• Option to show stage labels above bars
Warning: This ribbon is not predictive and is subject to market conditions.
Stages:
Consolidation: Price hugging the 200-day SMA (blue bars, fading in as consolidation persists).
Accumulation: Price above all three SMAs (50,150,200), 200-day SMA trending up, and SMA alignment (green bars, fading in; then fading out if MACD crosses down).
Distribution: Any bars not in Accumulation, Capitulation, or Consolidation (orange bars with fade).
Capitulation: Price below 200-day SMA with a down-sloping 200-day SMA (red bars with fade).
Gradient Fade: Each stage’s bar color fades in over gradientDays when it begins, and accumulation also fades out over gradientDays if the MACD line crosses below its signal line.
Accumulation Dot: A small blue dot appears beneath the candle once accumulation has remained intact for you-set accumDays (default 20).
52-Week Highlight: The background is shaded yellow whenever price is simultaneously ≥ minLowPct % above its 52-week low and within maxHighPct % of its 52-week high.
User Inputs:
• SMA lengths (50/150/200) & minimum SMA-slope threshold
• ATR length for consolidation buffer
• 52-week low/high percentage thresholds
• MACD fast/slow/signal lengths for fade-out trigger
• accumDays and gradientDays to tune dot timing and fade speed
• Option to show stage labels above bars
Warning: This ribbon is not predictive and is subject to market conditions.
Nota Keluaran
v2Fix the accumulation and distribution labels as colored dots.
v1
This Pine Script v6 indicator—“Mark Minervini Stage Analysis Ribbon” can overlay your chart with a dynamic, gradient-colored ribbon and markers that implement Minervini’s SEPA/Stage Analysis:
Stages:
Consolidation: Price hugging the 200-day SMA (blue bars, fading in as consolidation persists).
Accumulation: Price above all three SMAs (50,150,200), 200-day SMA trending up, and SMA alignment (green bars, fading in; then fading out if MACD crosses down).
Distribution: Any bars not in Accumulation, Capitulation, or Consolidation (orange bars with fade).
Capitulation: Price below 200-day SMA with a down-sloping 200-day SMA (red bars with fade).
Gradient Fade: Each stage’s bar color fades in over gradientDays when it begins, and accumulation also fades out over gradientDays if the MACD line crosses below its signal line.
Accumulation Dot: A small blue dot appears beneath the candle once accumulation has remained intact for you-set accumDays (default 20).
52-Week Highlight: The background is shaded yellow whenever price is simultaneously ≥ minLowPct % above its 52-week low and within maxHighPct % of its 52-week high.
User Inputs:
• SMA lengths (50/150/200) & minimum SMA-slope threshold
• ATR length for consolidation buffer
• 52-week low/high percentage thresholds
• MACD fast/slow/signal lengths for fade-out trigger
• accumDays and gradientDays to tune dot timing and fade speed
• Option to show stage labels above bars
Nota Keluaran
v3 All stage dots are smaller with toggle option and histogram spectrum adjusted based on volume
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.