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
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน