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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.