OPEN-SOURCE SCRIPT
Inside Bars

📌 Overview:
This indicator scans for multiple inside bars during periods of consolidation by dynamically designating a “mother bar” and then marking subsequent bars that trade entirely within its range. It includes an optional doji filter on the most recent candle, helping to confirm indecision before potential breakouts.
🛠 Key Features:
✅ Dynamic Mother Bar Identification:
The script selects a mother bar when the current bar’s range exceeds that of the previous bar. This bar sets the high and low boundaries, creating a reference zone for later price action.
Once a mother bar is defined, subsequent candles that remain completely within its high and low are flagged as inside bars.
✅ Optional Doji Check:
For added precision, an optional feature lets you verify that the most recent bar is a doji—a candle where the difference between the open and close is minimal relative to its total range. This additional filter highlights periods of market indecision, which can often precede strong directional moves.
⚡ Add this script to your chart and enhance your trading strategy! 🚀
This indicator scans for multiple inside bars during periods of consolidation by dynamically designating a “mother bar” and then marking subsequent bars that trade entirely within its range. It includes an optional doji filter on the most recent candle, helping to confirm indecision before potential breakouts.
🛠 Key Features:
✅ Dynamic Mother Bar Identification:
The script selects a mother bar when the current bar’s range exceeds that of the previous bar. This bar sets the high and low boundaries, creating a reference zone for later price action.
Once a mother bar is defined, subsequent candles that remain completely within its high and low are flagged as inside bars.
✅ Optional Doji Check:
For added precision, an optional feature lets you verify that the most recent bar is a doji—a candle where the difference between the open and close is minimal relative to its total range. This additional filter highlights periods of market indecision, which can often precede strong directional moves.
⚡ Add this script to your chart and enhance your trading strategy! 🚀
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.