PROTECTED SOURCE SCRIPT
Market State Data Box Multi TF Trend Reversion Breakouts

The Market State Data Box (v6) is a visual dashboard overlay that provides a real-time snapshot of market structure across multiple timeframes. It helps traders quickly assess trend direction, mean reversion conditions, and breakout volatility all without cluttering the chart.
For each selected timeframe (Monthly to 2-minute), the box displays:
Trend Alignment
Detects whether EMAs are in bullish, bearish, or neutral alignment:
Green = Bullish trend (stacked EMAs)
Red = Bearish trend (inverted EMAs)
Black = Neutral/mixed
Mean Reversion Zone
Highlights if the price is currently between EMA1 and EMA3, suggesting a potential mean-reversion environment (sideways, balanced).
BB Breakout Detection
Triggers if price breaks outside a 2 standard deviation range around the EMA (like a Bollinger Band breakout), useful for spotting explosive moves or fakeouts.
Customizable Inputs
Enable or disable any timeframe (Monthly, Weekly, Daily, etc.)
Set custom EMA values per timeframe (default: 20, 50, 200)
Use 2-EMA logic by setting the 3rd EMA to 0
Adjust box transparency and position
Use Case Examples
Use higher TFs (D, W, M) for trend bias
Use lower TFs (2m, 5m, 15m) for execution
Confirm breakouts or range setups using BB Break & MR zones
For each selected timeframe (Monthly to 2-minute), the box displays:
Trend Alignment
Detects whether EMAs are in bullish, bearish, or neutral alignment:
Green = Bullish trend (stacked EMAs)
Red = Bearish trend (inverted EMAs)
Black = Neutral/mixed
Mean Reversion Zone
Highlights if the price is currently between EMA1 and EMA3, suggesting a potential mean-reversion environment (sideways, balanced).
BB Breakout Detection
Triggers if price breaks outside a 2 standard deviation range around the EMA (like a Bollinger Band breakout), useful for spotting explosive moves or fakeouts.
Customizable Inputs
Enable or disable any timeframe (Monthly, Weekly, Daily, etc.)
Set custom EMA values per timeframe (default: 20, 50, 200)
Use 2-EMA logic by setting the 3rd EMA to 0
Adjust box transparency and position
Use Case Examples
Use higher TFs (D, W, M) for trend bias
Use lower TFs (2m, 5m, 15m) for execution
Confirm breakouts or range setups using BB Break & MR zones
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Można z tego korzystać swobodnie i bez żadnych ograniczeń — więcej informacji znajduje się tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Można z tego korzystać swobodnie i bez żadnych ograniczeń — więcej informacji znajduje się tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.