OPEN-SOURCE SCRIPT
Updated

Inside Bar/Outside Bar/Mother Bar Box By SmartTrader888

3 617
This Indicator shows:
1. Inside Bar
2. Outside Bar
3. Mother Bar box (Box the mother bar and all subsequent inside bars)

This indicator handles correctly the edge conditions such as:
1. bar close = bar open
2. current bar low equals to mother bar low or current bar high equals mother bar high
Release Notes
This Indicator shows:
1. Inside Bar
2. Outside Bar
3. Mother Bar box (Box the mother bar and all subsequent inside bars)
4. Mother Bar's middle price line

This indicator handles correctly the edge conditions such as:
1. bar close = bar open
2. current bar low equals to mother bar low or current bar high equals mother bar high

Special features:
  • Choose Open/Close or High/Low as child bar's price range


2025-01-19
Initial version.

2025-01-20
Added to choose Open/Close or High/Low as child bar's price range
Release Notes
Release Notes

This Indicator shows:
1. Inside Bar
2. Outside Bar
3. Mother Bar label
3. Mother Bar box (Box the mother bar and all subsequent inside bars)
4. Mother Bar's middle price line

2025-03-28
Added Mother Bar label

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.