OPEN-SOURCE SCRIPT

[codapro] PressureBox Breakout Engine

746
snapshot

[codapro] PressureBox Breakout Engine

Donchian Compression + ATR Threshold + Volume Pressure Blend

Just dropped a powerful new tool built using the CodaPro Pine Script modular system — designed to visually identify compression zones and trigger breakout alerts using a blend of price action, volatility, and volume pressure.

Optimized Settings Used in This Post (5-min Chart)

These settings are tuned specifically for /MNQ and /MYM and worked beautifully during the major breakout at 09:25 EST today:

Donchian Length: 8

ATR Length: 13

ATR Multiplier: 3.1

ATR SMA Threshold Length: 21

Max Extend Bars: 55

Base Red Transparency: 82

Border Transparency: 35

MFI Length: 25

CMF Length: 55

Blend Weight: 0.5 (MFI/CMF equally weighted)

How It Works:

Compression Detection: When the Donchian channel width falls below a dynamic ATR-based threshold, a red compression box appears.

Volume Pressure Shading: The red box shade intensifies based on a custom volume pressure calculation, blending MFI + CMF.

Breakout Flags: Once price breaks out of the compression zone — and pressure conditions align — it paints BUY or SELL flags using ATR offsets.

Midline Plot: A midline is drawn inside the box to help assess which side the breakout is favoring.

Key Features:

Supports real-time box building

Visually adaptive to volume shifts

Includes optional Overlap % Plot and Pressure Signal Plot

Customizable Donchian source (wicks or closes)

Use Cases:

Ideal for traders looking to identify pre-breakout compression

Works great on micro futures like /MNQ, /MYM, /MCL, /MGC

Can also be applied to equities, crypto, and FX with minor tuning

Disclaimer:

This tool was created using the CodaPro Pine Script indicator design engine — an architecture system for building visual signal overlays and automated alerts.

It is provided for educational and informational purposes only and is not financial advice. Always test thoroughly before using in live market conditions.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.