PROTECTED SOURCE SCRIPT

Inside Bar Explosion

18
Category: Price Action, Volatility Compression, Breakout Detection

๐Ÿ” Overview

This indicator detects multi-bar inside candle compressions (โ€œinside bar coilsโ€) and marks powerful breakout moments that follow.
It highlights when volatility contracts inside a large โ€œmother candleโ€ and then suddenly explodes with a bullish or bearish breakout backed by volume confirmation.

โš™๏ธ How It Works

Mother Candle:

Detected when a large candle (range > defined %) appears with above-average volume.

Compression Phase:

Consecutive candles stay completely within the range of that mother candle.

The longer the compression, the tighter the coiling pattern.

Explosion Candle:

A candle breaks above or below the compression range,

Has a large range and a volume spike, confirming breakout direction.

๐Ÿ’ก Visual Cues

๐ŸŸจ Yellow Highlight: Mother Candle

๐Ÿ”ต Blue Zone: Compression (Inside Bar Cluster)

๐ŸŸข Green Background: Bullish Explosion

๐Ÿ”ด Red Background: Bearish Explosion

๐Ÿš€ Label: Bull breakout with days in compression

๐Ÿ’ฅ Label: Bear breakdown with days in compression

โšก START: Marks final compression candle before breakout

๐Ÿ“Š Table (Top Right): Live compression stats (days, range %, volume ratio)

๐Ÿง  Parameters
Setting Description
Minimum Inside Bars Minimum candles inside the mother candle to qualify as compression.
Maximum Inside Bars Limit to prevent invalid long compressions.
Mother Candle Min Size (%) Defines how large a candle must be to be considered a mother candle.
Explosion Candle Min Size (%) Minimum % range for valid breakout candles.
Volume Spike Multiplier Required volume increase vs. average for breakout validation.
Show Labels / Box Toggle visual elements on/off for clarity.
๐Ÿšจ Alerts

โšก Compression Start: New coiling phase detected.

๐Ÿš€ Bull Explosion: Bullish breakout with volume confirmation.

๐Ÿ’ฅ Bear Explosion: Bearish breakdown with volume confirmation.

๐Ÿ“ˆ Use Cases

Identify volatility squeezes before major breakouts.

Detect range-bound periods leading to trend initiation.

Combine with moving averages or RSI for higher confidence setups.

โš ๏ธ Notes

Works best on daily or 4-hour charts.

Works for stocks, crypto, forex, or indices.

Does not repaint โ€” signals are confirmed on bar close.

Declinazione di responsabilitร 

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.