PROTECTED SOURCE SCRIPT
Güncellendi 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.
Sürüm Notları
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
Sürüm Notları
v3 All stage dots are smaller with toggle option and histogram spectrum adjusted based on volume
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.