OPEN-SOURCE SCRIPT

Inside Bar Zones by AAK (V6)

817
📦 Smart Inside Bar Zones

Smart Inside Bar Zones is a price-action–based indicator designed to automatically detect, track, and visualize inside bar consolidation zones with full historical context.

Instead of marking single inside candles, this indicator groups consecutive inside bars into structured zones, locking the original mother candle range and extending it until price breaks out. This allows traders to clearly identify areas of compression, balance, and potential expansion.

🔍 Key Features
Automatic Inside Bar Detection

Identifies inside bars using candle bodies within the mother candle range, with an optional tick buffer.

Smart Zone Creation

Consecutive inside bars are grouped into a single zone, anchored to the original mother candle.

Unlimited Historical Storage (Data)

All previous inside bar zones are stored internally, enabling long-term analysis and backtesting.

Safe & Optimized Drawing

Zones are drawn using recyclable boxes to respect TradingView object limits while maintaining performance.

Highlight Inside Bars

Optional candle coloring for quick and clear visual confirmation.

Flexible Display Options

Show only the latest zone

Or display multiple zones with automatic recycling

📈 How Traders Use It

Identify consolidation before expansion

Spot compression zones for breakout or fakeout scenarios

Combine with SMC, order flow, support & resistance, or liquidity concepts

Use higher-timeframe zones for directional bias

Use lower-timeframe zones for entries and scalps

⚠️ Important Notes

This indicator does not predict direction — it highlights structure

Zones represent price balance, not buy or sell signals

Best used in confluence with your trading strategy and risk management

🧠 Designed For

Price action traders

SMC / market structure traders

Forex, crypto, indices, and futures

Any timeframe

⚠️ Risk Disclaimer

This indicator is for educational purposes only and is not financial advice. Trading involves significant risk, and losses may exceed expectations. Past performance does not guarantee future results. Always use proper risk management and trade at your own discretion.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.