MTF Market State DashboardA multi-timeframe market context dashboard designed to classify market conditions using three independent analytical layers: Trend direction, Trend strength and Participation / Volume flow
Instead of relying on a single indicator or isolated signal, this script combines multiple forms of market information into a structured decision framework intended to help traders evaluate the quality and maturity of a market condition.
The goal of the dashboard is not to predict tops or bottoms, but to help identify:
• aligned market conditions
• conflicting conditions
• strengthening trends
• weakening trends
• and low-conviction environments
Core Idea Behind The Script
Many indicators work well in certain environments and poorly in others.
For example:
• Trend indicators may continue showing bullish conditions during weakening momentum.
• Momentum indicators may react aggressively inside consolidations.
• Volume indicators may show temporary spikes without broader trend confirmation.
This script was built to reduce that fragmentation by separating market behavior into three independent layers:
1. Direction
Defines where the market is currently biased.
2. Strength
Measures whether the move has enough momentum to sustain itself.
3. Participation
Evaluates whether price movement is supported by broader volume-flow behavior.
The dashboard then combines these layers into a unified market-state classification system.
What The Dashboard Tracks
1. Trend Structure Layer
The script evaluates directional bias using:
EMA 200
Used as the higher-level directional filter.
Typical interpretation:
• Price above EMA 200 → bullish macro bias
• Price below EMA 200 → bearish macro bias
EMA 50
Tracks intermediate trend behavior and shorter-term structural changes.
Supertrend
Used as a dynamic trend confirmation layer.
Unlike a static moving average, the Supertrend adapts to volatility and helps identify directional transitions more quickly.
Each trend component is displayed as:
• BULL
• BEAR
along with an “age” value showing how many bars have passed since the last state change.
This allows traders to distinguish between:
• fresh transitions
• mature trends
• and potentially exhausted conditions
2. Trend Strength Layer
ADX (via DMI)
ADX is used to measure trend strength, not trend direction.
Typical interpretation:
• Low ADX → weak or ranging environment
• Rising / high ADX → stronger directional environment
This distinction matters because bullish conditions inside weak trend environments often behave differently from bullish conditions inside expanding trends.
The script uses ADX as a confirmation filter inside the Market State logic.
3. Participation & Volume-Flow Layer
This layer attempts to measure whether directional movement is being supported by participation and flow behavior.
CMF (Chaikin Money Flow)
CMF estimates buying versus selling pressure by evaluating closing location relative to range and volume.
General interpretation:
• Positive CMF → accumulation pressure
• Negative CMF → distribution pressure
CDV (Cumulative Delta Volume Proxy)
Pine Script does not provide true bid/ask delta data.
This script therefore uses a candle-based directional volume proxy to estimate cumulative directional participation.
The CDV layer classifies conditions as:
• Rising
• Falling
• Neutral
Adaptive filtering is included to reduce minor fluctuations and noise.
OBV Breakout Detection
The script also evaluates whether On-Balance Volume is breaking above or below recent ranges.
This is used to identify:
• expanding participation
• weakening participation
• or neutral flow conditions
The OBV component is not intended as a standalone signal generator, but rather as an additional confirmation layer inside the broader market-state framework.
Market State Classification
One of the main purposes of the script is to convert multiple independent readings into a simplified market-state output.
The dashboard derives a “Market State” by combining:
• Trend direction
• Trend strength
• Participation / flow confirmation
Possible classifications include:
• Strong Bull Context
• Bull Context
• Mixed / Wait
• Bear Context
• Strong Bear Context
The classification is not predictive and should not be interpreted as financial advice.
Instead, it is intended to provide a structured summary of current market conditions.
How Market State Is Derived
The logic combines three internal scoring groups:
Trend Score
Built from:
• EMA 200 state
• EMA 50 state
• Supertrend state
Participation Score
Built from:
• CMF bias
• CDV direction
• OBV breakout state
Strength Filter
Built from:
• ADX threshold validation
Example:
• bullish trend structure
• bullish participation
• and strong ADX
→ may classify as “Strong Bull Context”
Whereas:
• bullish trend structure
• weak participation
• and weak ADX
→ may classify as “Mixed / Wait”
This allows the dashboard to identify agreement and disagreement between independent analytical layers.
Multi-Timeframe Logic
The script supports:
• single timeframe mode
• dual timeframe mode
Typical usage example:
• Lower timeframe → execution context
• Higher timeframe → broader directional context
This allows traders to compare:
• local conditions
• against higher timeframe structure
without switching charts repeatedly.
Age Tracking
Each directional state includes an “age” measurement representing the number of bars since the last directional transition.
This is included because newer transitions and older trends may behave differently.
Example:
• Low age → newer condition
• High age → more mature condition
The script does not assume older trends will reverse, but age can provide additional context about trend maturity.
Practical Interpretation
Example: Higher-Conviction Bullish Environment
Possible characteristics:
• EMA structure bullish
• Supertrend bullish
• ADX elevated
• CMF positive
• CDV rising
• OBV breakout bullish
This may indicate alignment between:
• trend
• momentum
• and participation
Example: Mixed Environment
Possible characteristics:
• bullish EMA structure
• falling CDV
• weak ADX
• neutral OBV behavior
This may indicate:
• weakening momentum
• transition behavior
• or lower-conviction conditions
Intended Usage
The script is designed as:
• a context tool
• a filtering framework
• and a market-state dashboard
It is not intended to replace:
• risk management
• execution models
• or broader trading plans
The dashboard is generally most useful when combined with:
• breakout systems
• pullback systems
• trend-following models
• or discretionary execution methods
Customization Options
The script includes:
• 1TF / 2TF modes
• configurable EMA lengths
• Supertrend settings
• ADX threshold controls
• CDV sensitivity adjustment
• OBV breakout lookback settings
• Table themes
• Text sizing
• Dashboard positioning
Notes
• CDV uses a candle-based proxy because true bid/ask delta data is unavailable in Pine Script.
• The dashboard focuses on contextual interpretation rather than direct entry signals.
• The Market State classification is derived from internal scoring logic and should be interpreted as a contextual summary, not a prediction engine.
Summary
This dashboard was designed to organize multiple forms of market information into a single structured framework.
Rather than treating trend, momentum, and participation separately, the script attempts to evaluate how they interact with each other across one or more timeframes.
The result is a compact market-context tool intended to help traders:
• identify alignment
• recognize conflict
• filter weaker conditions
• and evaluate overall market structure more efficiently.
Pine Script® indicator






















