Price Action: Inside Bar Boxes
Oct 1, 2021

The Price Action: Inside Bar Boxes indicator is a visualization tool that automatically identifies and highlights inside bar patterns by drawing boxes around the mother bar and its subsequent inner bars. It helps traders identify periods of price consolidation and potential breakout points directly on the chart.
Usage
The tool is primarily used to visualize consolidation ranges formed by inside bars. A box is initiated when a bar's high and low are contained within the previous bar's range (the "mother bar").
Traders can use this tool to:
- Identify Consolidation: The boxes clearly define the range where price is contracting.
- Spot Breakouts: When price closes above or below the established box range, the indicator plots triangle shapes to signal a potential breakout.
- Clean Up Charts: By using the "Show only last Box" setting, users can focus solely on the most recent price action without historical clutter.
Details
An inside bar is a candlestick whose high and low are completely contained within the high and low of the preceding candle. This indicator calculates these relationships based on a user-defined buffer zone. When multiple inside bars occur consecutively, the indicator extends the box to cover the entire sequence until a bar closes outside the initial mother bar's range. The logic ensures that even complex nested patterns are captured and visualized as a single area of consolidation.
Settings
Main Settings
- High-Low buffer zone: Adds a specific number of ticks to the high/low calculation to allow for slight deviations in the pattern.
- Highlight bars in boxes: When enabled, the candles inside the box are colored to distinguish them from standard price action.
- Show only last Box: Removes all historical boxes from the chart, leaving only the most recent one visible.
- Show boxes break: Toggles the visibility of the breakout triangles when price exits the box range.
Visual Settings
- Box transparency: Adjusts the opacity of the background fill for the drawn boxes.
- Background color: Sets the color for the box area.
- Inside bars body color: Sets the color for the candle bodies when "Highlight bars" is enabled.
FAQ
How do I access Price Action: Inside Bar Boxes?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the "High-Low buffer zone" used for?
The buffer zone allows you to expand the definition of an inside bar by a set number of ticks, which can be useful on volatile assets where prices might slightly breach the mother bar range without truly breaking out.
Can I set alerts for breakouts?
Yes, the indicator includes built-in alert functionality for both bullish (Up) and bearish (Down) box breakouts.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.