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.
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน