AG Pro Market Regime MeterOverview / What it does
The AG Pro Market Regime Meter is a chart-first context and diagnostics tool designed to classify the current market environment. It evaluates price action across three separate dimensions: Trend Strength, Chop Risk, and Volatility. By providing an on-chart HUD (Heads-Up Display) and optional regime shift markers, it helps traders visualize whether the market is in a directional trend, a choppy range, or undergoing volatility expansion/contraction.
Unique Edge
Unlike traditional indicators that compress market context into a single oscillator line, this script isolates the three core pillars of market structure. It does not generate buy or sell signals. Instead, its unique edge lies in combining efficiency ratios, directional movement, and true range measurements to output a multi-axis regime classification. This prevents the blending of distinct market behaviors, allowing for clearer regime-based playbook selection.
Methodology (Conceptual)
The script processes market context through three distinct calculation engines:
1. Trend Strength: Blends a persistence measure (Efficiency Ratio calculating net movement vs. total movement) with normalized directional movement (ADX derived from DMI) to score directional structure.
2. Chop / Whipsaw Risk: Uses a Choppiness-style logic comparing the sum of True Range against the absolute High-Low range, inversely weighted with trend strength to assess fakeout probability.
3. Volatility Regime: Normalizes the current ATR percentage (ATR relative to close price) against a historical lookback window (default 100 periods) to classify structural expansion or contraction.
The engine then outputs rule-based LOW/MID/HIGH threshold bands for each axis and generates a final heuristic Regime Summary.
Signals and Alerts
This script is a context tool and does not produce predictive trading signals or alerts.
- Regime Shift Markers: The script plots optional visual markers on the chart when the heuristic Regime Summary changes (e.g., TREND to RANGE).
- Confirmation: To prevent intrabar flickering, shift markers are evaluated and locked in strictly on confirmed bar closes. Anti-clutter algorithms (minimum bars apart, ATR-based offsets) are applied to keep the chart clean.
How to Use
Apply the indicator to evaluate if your intended trade setup matches the current market environment:
1. Trend HIGH + Chop LOW: Indicates structural direction. Favorable for trend-following logic and pullback entries.
2. Chop HIGH: Indicates elevated whipsaw probability. Warrants caution, size reduction, or mean-reversion tactics.
3. Volatility Check: High volatility suggests wider swings (requiring wider stops), while low volatility suggests contraction and potentially slower breakouts.
4. Use the HTF Peek row in the HUD to ensure the current timeframe regime aligns with the higher timeframe structure.
Limitations and Transparency
- This is strictly a contextual layer, not a standalone trading system. It does not provide entries or exits.
- The LOW/MID/HIGH classifications are heuristic baseline measurements. They may require parameter tuning depending on the specific asset class, timeframe, and baseline volatility profile.
- The HTF Peek row uses the request.security function. Depending on the current bar state, higher timeframe context data may fluctuate until the actual higher timeframe bar closes.
Risk Disclosure
Trading involves significant risk of capital loss. This script is provided strictly for educational and informational purposes and does not constitute financial or investment advice. Always evaluate liquidity, slippage, and your own account constraints, and employ strict risk management.
Pine Script® インジケーター






















