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.


免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。