OPEN-SOURCE SCRIPT
Inside / Outside Bars

This indicator highlights Inside Bars and Outside Bars directly on the chart, helping identify consolidation and expansion phases in price action.
Key Features:
Inside Bar Detection
An Inside Bar is a candle whose high and low are fully contained within the range of the previous candle.
This typically signals consolidation, reduced volatility, and potential buildup before a breakout.
Outside Bar Detection
An Outside Bar is a candle whose high is higher than the previous high and whose low is lower than the previous low.
This reflects range expansion, increased volatility, and possible reversal or continuation momentum.
Visual Highlighting
Inside and Outside Bars are clearly marked on the chart with customizable colors, allowing quick recognition without manual analysis.
Clean and Minimal Design
-The indicator is designed to avoid clutter, focusing only on key price action signals.
-Works on Any Market
-Can be applied to crypto, forex, stocks, and indices.
Use Cases:
-Identify breakout setups after consolidation (Inside Bars)
-Spot volatility expansion and potential reversals (Outside Bars)
-Combine with higher timeframe levels and liquidity concepts for improved decision-making
This tool is built for traders who rely on pure price action and want a clear, automated way to track key candle patterns.
Key Features:
Inside Bar Detection
An Inside Bar is a candle whose high and low are fully contained within the range of the previous candle.
This typically signals consolidation, reduced volatility, and potential buildup before a breakout.
Outside Bar Detection
An Outside Bar is a candle whose high is higher than the previous high and whose low is lower than the previous low.
This reflects range expansion, increased volatility, and possible reversal or continuation momentum.
Visual Highlighting
Inside and Outside Bars are clearly marked on the chart with customizable colors, allowing quick recognition without manual analysis.
Clean and Minimal Design
-The indicator is designed to avoid clutter, focusing only on key price action signals.
-Works on Any Market
-Can be applied to crypto, forex, stocks, and indices.
Use Cases:
-Identify breakout setups after consolidation (Inside Bars)
-Spot volatility expansion and potential reversals (Outside Bars)
-Combine with higher timeframe levels and liquidity concepts for improved decision-making
This tool is built for traders who rely on pure price action and want a clear, automated way to track key candle patterns.
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.