OPEN-SOURCE SCRIPT

Inside Bar Detector - 15min

171


🔍 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.


Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.