OPEN-SOURCE SCRIPT
MAUI Open/Close Body Gaps

**MTF Open Body Gaps**
This indicator identifies open gaps between the closing price of one candle body and the opening price of the following candle body.
A bullish body gap is detected when a bearish candle is followed by a bullish candle that opens above the previous candle’s close.
A bearish body gap is detected when a bullish candle is followed by a bearish candle that opens below the previous candle’s close.
The indicator supports multiple timeframes and can display gaps from:
M1, M2, M3, M4, M5, M10, M15, M30, M45, H1, H2, H3, H4 and Daily.
The current chart timeframe can also be enabled separately.
Only unfilled body gaps remain visible. A gap is automatically removed once a later candle body reaches or fills the relevant gap level.
The minimum and maximum gap size can be defined in ticks, allowing small or unusually large gaps to be filtered out.
**Features**
• Multi-timeframe body gap detection
• Bullish and bearish gap recognition
• Minimum gap size in ticks
• Maximum gap size in ticks
• Automatic removal of filled gaps
• Adjustable colors, line style and line width
• Adjustable maximum number of open gaps
• Protection against duplicate signals from identical timeframes
This indicator focuses exclusively on gaps between candle bodies. Candle wicks are not used to create or fill a gap.
This indicator identifies open gaps between the closing price of one candle body and the opening price of the following candle body.
A bullish body gap is detected when a bearish candle is followed by a bullish candle that opens above the previous candle’s close.
A bearish body gap is detected when a bullish candle is followed by a bearish candle that opens below the previous candle’s close.
The indicator supports multiple timeframes and can display gaps from:
M1, M2, M3, M4, M5, M10, M15, M30, M45, H1, H2, H3, H4 and Daily.
The current chart timeframe can also be enabled separately.
Only unfilled body gaps remain visible. A gap is automatically removed once a later candle body reaches or fills the relevant gap level.
The minimum and maximum gap size can be defined in ticks, allowing small or unusually large gaps to be filtered out.
**Features**
• Multi-timeframe body gap detection
• Bullish and bearish gap recognition
• Minimum gap size in ticks
• Maximum gap size in ticks
• Automatic removal of filled gaps
• Adjustable colors, line style and line width
• Adjustable maximum number of open gaps
• Protection against duplicate signals from identical timeframes
This indicator focuses exclusively on gaps between candle bodies. Candle wicks are not used to create or fill a gap.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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 PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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 PulseWire. Read more in the Terms of Use.
