PROTECTED SOURCE SCRIPT
Stage Analysis & Minervini Trend Analysis

Stage Analysis & Minervini
This Pine Script indicator is a comprehensive technical analysis suite designed for traders following Mark Minervini's Trend Template and Stan Weinstein’s Stage Analysis. It automates the heavy lifting of checking moving average alignments, volume characteristics, and 52-week price relative strength.
### Key Features ###
### The Dashboard ###
The top-right (default) table provides a real-time health check of the asset:
Metric: Description
MA Statistics: Current values for 10, 20, 50, 150, and 200 SMAs.
MA Alignment: A green arrow appears if Price > 50 > 150 > 200 SMA.
52W High/Low Ratios: Validates if the price is within 25% of its 52-week high and at least 30% above its 52-week low.
SMA Trends: Status (Up/Down/Flat) for the 50, 150, and 200 SMAs based on a 30-day slope.
ADR & ATR: Shows Average Daily Range and Average True Range over 20 periods.
### Visual Guide ###
Bar Coloring Logic
When Highlight Volume is enabled, bars change color during high-volume events:
Swing Markers
The script automatically identifies pivot points:
### Inputs & Settings ###
### Usage Tips ###
Disclaimer: This script is for educational and informational purposes only. Trading involves significant risk. Always perform your own due diligence.
This Pine Script indicator is a comprehensive technical analysis suite designed for traders following Mark Minervini's Trend Template and Stan Weinstein’s Stage Analysis. It automates the heavy lifting of checking moving average alignments, volume characteristics, and 52-week price relative strength.
### Key Features ###
- Minervini Trend Template Validation: Automatically checks if price and moving averages (50, 150, 200 SMA) meet the "Trend Template" criteria.
- Adaptive Moving Averages: Includes 10, 20, 50, 150, and 200 SMAs. You can "lock" these to the Daily timeframe so they remain consistent even when you switch to lower timeframes.
- Smart Volume Analysis:
- Highlights bars based on volume intensity and price close (Top vs. Bottom Quartile).
Calculates a Weekly Volume Ratio to identify institutional accumulation or distribution. - Volatility Profiling: Categorizes stocks into four risk buckets (Ultra-Steady to High Volatility) based on ATR-to-SMA ratios.
- Automated Stop Loss (SL) & Swing Markers:
- Displays a dynamic 2x ATR Stop Loss line.
- Identifies Swing Highs (SH) and Swing Lows (SL) with vertical markers.
- Calculates suggested stop levels based on major moving averages at the most recent pivot low.
- Displays a dynamic 2x ATR Stop Loss line.
### The Dashboard ###
The top-right (default) table provides a real-time health check of the asset:
Metric: Description
MA Statistics: Current values for 10, 20, 50, 150, and 200 SMAs.
MA Alignment: A green arrow appears if Price > 50 > 150 > 200 SMA.
52W High/Low Ratios: Validates if the price is within 25% of its 52-week high and at least 30% above its 52-week low.
SMA Trends: Status (Up/Down/Flat) for the 50, 150, and 200 SMAs based on a 30-day slope.
ADR & ATR: Shows Average Daily Range and Average True Range over 20 periods.
### Visual Guide ###
Bar Coloring Logic
When Highlight Volume is enabled, bars change color during high-volume events:
- Green: Price closed in the top 25% of its daily range (Strong Demand).
- Yellow: Price closed in the bottom 25% or lower than the previous close (Distribution).
- Black: High volume but price closed in the middle of the range (Indecision).
Swing Markers
The script automatically identifies pivot points:
- Yellow "SL" Label: Recent Swing Low with a vertical dotted line and projected SMA support levels.
- Blue "SH" Label: Recent Swing High.
### Inputs & Settings ###
- Lock SMAs to Daily: Keep this checked to ensure your 200-day SMA doesn't turn into a 200-period SMA when switching to an hourly chart.
- ATR Multiplier: Adjust the volatility stop loss (default is 2.0).
- Pivot Strength: Change the left/right bar count required to confirm a Swing High or Low.
- Table Position: Move the dashboard to any corner of your chart to avoid overlapping with other indicators.
### Usage Tips ###
- Stage 2 Selection: Look for the "MA Alignment" arrow to be green. This indicates the stock is in a confirmed uptrend.
- Volume Clues: Watch for green-highlighted bars on high volume—this often signals the start of a "Power Play" or institutional entry.
- Weekly View: On the Weekly timeframe, the script plots a volume ratio label. A ratio > 2.0 with a green triangle indicates massive accumulation.
Disclaimer: This script is for educational and informational purposes only. Trading involves significant risk. Always perform your own due diligence.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.