OPEN-SOURCE SCRIPT
Price Action - Inside/Outside Bars

This indicator highlights Inside and Outside bars based on Al Brooks' price action philosophy from "Reading Price Charts Bar by Bar." Inside bars (high ≤ previous high and low ≥ previous low) represent contraction and potential breakouts, often leading to two-legged moves. Outside bars (high > previous high and low < previous low with min body 50%) signal volatility and possible reversals or trends. Customizable highlights, lines, and labels help identify high-probability setups in trends or ranges. Always focus on context—buy low, sell high, and wait for confirmation.
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.
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.
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.