Downloading...
OPEN-SOURCE SCRIPT

Inside Bar Detector - 15min

181


🔍 What is an Inside Bar?

An **Inside Bar** is a candle that forms **entirely within the high and low of the previous candle**. It represents **consolidation**, **indecision**, or **potential reversal**, and is a key signal in The Strat trading method.



🔧 What the Script Does:

1. **Timeframe Restriction**:

* The script activates **only on the 15-minute timeframe**, avoiding clutter on other timeframes.

2. **Inside Bar Logic**:

* It checks whether the **current bar’s high is lower than the previous bar’s high**, **AND** the **current bar’s low is higher than the previous bar’s low**.
* If both conditions are true, it confirms an Inside Bar.

3. **Visual Display**:

* When an Inside Bar is detected, the script **plots a yellow label ("1") above the bar**.
* The label represents the Strat 1-bar and helps you easily spot potential setups.



🎯 Use Case:

* Ideal for **Strat traders**, **price action analysts**, or **any trader** looking for breakout or reversal opportunities.
* Common setups include **1-2**, **1-3**, or **double inside bar** breakouts.


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.