OPEN-SOURCE SCRIPT
MARK Inside Bars

**Mother Bar Range — Inside Bar Sequence** is a simple price-action indicator designed to identify and highlight consecutive candles trading within the range of a Mother Bar.
Unlike traditional inside-bar indicators that compare each candle only to the candle immediately before it, this indicator tracks the **original Mother Bar's High and Low**.
Once an Inside Bar forms, the previous candle becomes the Mother Bar. Every following candle is highlighted as long as:
• Its High remains at or below the Mother Bar High
• Its Low remains at or above the Mother Bar Low
This makes it easy to identify extended periods of **price compression and consolidation**, even when there are multiple consecutive candles inside the same Mother Bar range.
The sequence ends when price trades outside the Mother Bar's range.
**Useful for identifying:**
• Inside Bar sequences
• Price compression
• Consolidation ranges
• Mother Bar structures
• Potential expansion/breakout setups
Works on all markets and timeframes.
Unlike traditional inside-bar indicators that compare each candle only to the candle immediately before it, this indicator tracks the **original Mother Bar's High and Low**.
Once an Inside Bar forms, the previous candle becomes the Mother Bar. Every following candle is highlighted as long as:
• Its High remains at or below the Mother Bar High
• Its Low remains at or above the Mother Bar Low
This makes it easy to identify extended periods of **price compression and consolidation**, even when there are multiple consecutive candles inside the same Mother Bar range.
The sequence ends when price trades outside the Mother Bar's range.
**Useful for identifying:**
• Inside Bar sequences
• Price compression
• Consolidation ranges
• Mother Bar structures
• Potential expansion/breakout setups
Works on all markets and timeframes.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.