OPEN-SOURCE SCRIPT
Compression Dashboard & EMA Tracker by Herman Sangivera (Papua)

Compression & EMA Probability Tracker By Herman Sangivera ( Papua )
Overview
The Compression & EMA Probability Tracker is a specialized price action tool designed to identify "Compression" (CP) zones—areas where price volatility narrows, and liquidity is systematically cleared. These zones often precede explosive breakouts or sharp reversals.
By integrating EMA 9 (Fast) and EMA 21 (Slow), this indicator analyzes the current trend momentum within the compression box and provides a real-time probability assessment of whether the market is likely to continue its trend or undergo a reversal.
How It Works
Compression Detection: Using a lookback period and an ATR-based threshold, the script automatically highlights periods of low volatility with a gray background box. This represents the "coiling" effect of the market.
Trend Alignment (EMA 9/21): * If EMA 9 > EMA 21 and price remains above them, the trend is considered bullish.
If EMA 9 < EMA 21 and price remains below them, the trend is considered bearish.
Real-Time Dashboard: A sleek on-chart panel displays:
Current Status: Identifies Rally, Drop, or Reversal warnings.
Continuation Probability (%): Likelihood of the current trend resuming after the breakout.
Reversal Probability (%): Likelihood of a trend change based on EMA crossovers inside the box.
Key Features
Automatic Box Plotting: Visually defines the range of the compression.
Dynamic Dashboard: High-visibility panel showing trend strength and probabilities.
Highly Customizable: Adjust EMA lengths, ATR sensitivity, and dashboard position to fit your trading style.
How to Trade with this Indicator
Trend Continuation: Look for a breakout in the direction of the EMA alignment (e.g., price breaks above the box while EMA 9 is above EMA 21). This is high-probability when the dashboard shows >70% Trend Probability.
Reversal: Watch for the price to cross back into the box and for the EMA 9 to cross the EMA 21. This shift in momentum often signals a trap or a trend exhaustion.
Disclaimer: This indicator is for educational and analytical purposes only. Trading involves significant risk, and past performance (probabilities) does not guarantee future results. Always use proper stop-loss management.
Overview
The Compression & EMA Probability Tracker is a specialized price action tool designed to identify "Compression" (CP) zones—areas where price volatility narrows, and liquidity is systematically cleared. These zones often precede explosive breakouts or sharp reversals.
By integrating EMA 9 (Fast) and EMA 21 (Slow), this indicator analyzes the current trend momentum within the compression box and provides a real-time probability assessment of whether the market is likely to continue its trend or undergo a reversal.
How It Works
Compression Detection: Using a lookback period and an ATR-based threshold, the script automatically highlights periods of low volatility with a gray background box. This represents the "coiling" effect of the market.
Trend Alignment (EMA 9/21): * If EMA 9 > EMA 21 and price remains above them, the trend is considered bullish.
If EMA 9 < EMA 21 and price remains below them, the trend is considered bearish.
Real-Time Dashboard: A sleek on-chart panel displays:
Current Status: Identifies Rally, Drop, or Reversal warnings.
Continuation Probability (%): Likelihood of the current trend resuming after the breakout.
Reversal Probability (%): Likelihood of a trend change based on EMA crossovers inside the box.
Key Features
Automatic Box Plotting: Visually defines the range of the compression.
Dynamic Dashboard: High-visibility panel showing trend strength and probabilities.
Highly Customizable: Adjust EMA lengths, ATR sensitivity, and dashboard position to fit your trading style.
How to Trade with this Indicator
Trend Continuation: Look for a breakout in the direction of the EMA alignment (e.g., price breaks above the box while EMA 9 is above EMA 21). This is high-probability when the dashboard shows >70% Trend Probability.
Reversal: Watch for the price to cross back into the box and for the EMA 9 to cross the EMA 21. This shift in momentum often signals a trap or a trend exhaustion.
Disclaimer: This indicator is for educational and analytical purposes only. Trading involves significant risk, and past performance (probabilities) does not guarantee future results. Always use proper stop-loss management.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.