OPEN-SOURCE SCRIPT
AE_Inside Nested Mother Bars

AE_Inside Nested Mother Bars
AE_Inside Nested Mother Bars is a price-action tool designed to automatically detect and map Mother Bar / Inside Bar structures, including nested inside ranges.
The idea is simple:
When price compresses inside a previous candle's body, mark the range and let price decide how it resolves.
What it does
The indicator:
- Detects candles whose body remains inside the previous candle's body
- Requires a configurable minimum number of inside candles before confirming a Mother Bar range
- Automatically draws the confirmed range as a shaded zone
- Supports nested Mother Bars, allowing new structures to form while another range is still active
- Extends the active range until a confirmed candle close breaks above or below it
- Preserves completed ranges historically
- Optionally displays breakout markers
- Limits historical zones to keep the chart manageable
Important detail
The calculation is based on the candle body, not simply the wick high/low.
This means the indicator is looking for genuine body compression inside the Mother Bar rather than treating every overlapping candle as an Inside Bar.
How I use it
I don't treat every Mother Bar as a trade signal.
The zone is primarily a map of compression.
Once price breaks the range, the more interesting question becomes:
What does price do after the break?
Does it continue?
Does it retest the range?
Does it fail and return inside?
Does another nested structure form?
The Mother Bar gives the location. Price action provides the information about the resolution.
Companion indicator
The example chart may also show AE_MTaskRSI as a separate companion indicator.
AE_MTaskRSI is not part of AE_Inside Nested Mother Bars. It is shown separately to demonstrate how price compression can be viewed alongside RSI structure.
Settings
- Minimum Inside Candles — minimum number of qualifying inside candles required to confirm a range.
- Maximum Stored Zones — controls how many completed historical ranges are retained.
- Range Color — controls the zone color.
- Shade Transparency — controls zone transparency.
- Show Breakouts — enables/disables breakout markers.
Notes
This indicator is intended as a visual price-action and market-structure tool, not as a standalone buy/sell signal.
The breakout markers simply identify confirmed closes outside an active Mother Bar range. They do not predict direction or guarantee continuation.
© A3rl
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute investment, trading, or financial advice.
The levels, zones, and breakout markers are visual reference tools and are not guaranteed support, resistance, entry, exit, or target levels. Past market behavior does not guarantee future results.
Trading leveraged financial markets involves substantial risk. Always apply appropriate risk management and make your own trading decisions. You are solely responsible for your trading and investment decisions.
AE_Inside Nested Mother Bars is a price-action tool designed to automatically detect and map Mother Bar / Inside Bar structures, including nested inside ranges.
The idea is simple:
When price compresses inside a previous candle's body, mark the range and let price decide how it resolves.
What it does
The indicator:
- Detects candles whose body remains inside the previous candle's body
- Requires a configurable minimum number of inside candles before confirming a Mother Bar range
- Automatically draws the confirmed range as a shaded zone
- Supports nested Mother Bars, allowing new structures to form while another range is still active
- Extends the active range until a confirmed candle close breaks above or below it
- Preserves completed ranges historically
- Optionally displays breakout markers
- Limits historical zones to keep the chart manageable
Important detail
The calculation is based on the candle body, not simply the wick high/low.
This means the indicator is looking for genuine body compression inside the Mother Bar rather than treating every overlapping candle as an Inside Bar.
How I use it
I don't treat every Mother Bar as a trade signal.
The zone is primarily a map of compression.
Once price breaks the range, the more interesting question becomes:
What does price do after the break?
Does it continue?
Does it retest the range?
Does it fail and return inside?
Does another nested structure form?
The Mother Bar gives the location. Price action provides the information about the resolution.
Companion indicator
The example chart may also show AE_MTaskRSI as a separate companion indicator.
AE_MTaskRSI is not part of AE_Inside Nested Mother Bars. It is shown separately to demonstrate how price compression can be viewed alongside RSI structure.
Settings
- Minimum Inside Candles — minimum number of qualifying inside candles required to confirm a range.
- Maximum Stored Zones — controls how many completed historical ranges are retained.
- Range Color — controls the zone color.
- Shade Transparency — controls zone transparency.
- Show Breakouts — enables/disables breakout markers.
Notes
This indicator is intended as a visual price-action and market-structure tool, not as a standalone buy/sell signal.
The breakout markers simply identify confirmed closes outside an active Mother Bar range. They do not predict direction or guarantee continuation.
© A3rl
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute investment, trading, or financial advice.
The levels, zones, and breakout markers are visual reference tools and are not guaranteed support, resistance, entry, exit, or target levels. Past market behavior does not guarantee future results.
Trading leveraged financial markets involves substantial risk. Always apply appropriate risk management and make your own trading decisions. You are solely responsible for your trading and investment decisions.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.