VI

Inside Bar candlestick pattern detector indicator

Automatically finds Inside Bar (mother bar) patterns, draws the mother bar box, draws BUY, SELL arrows when price breaks out, filters by MA trend and notifies your phone.

Indicators MT4MT5 CB-2003v1.0 Lifetime 30-day trial 19/11/2026
Draws the mother bar box

A dotted box while the Inside Bar waits for a breakout, turning into a box coloured by direction once price breaks out.

Arrows on breakouts

Signals only when a candle closes outside the mother bar; a wick that pokes out and pulls back does not count. Each signal is alerted once.

MA trend filter

Keep only signals with the trend, or only signals against it to catch reversals.

Phone alerts

Alerts on breakouts, and can also alert when an Inside Bar has just formed so you can prepare.

Overview

The Inside Bar indicator (full name: Inside Bar candlestick pattern detector indicator, code CB-2003) for MetaTrader 4 and MetaTrader 5 automatically finds mother bar patterns, draws the mother bar box and draws BUY, SELL arrows with an "Inside Bar" label when price breaks out. It does not trade by itself; you decide when to enter.

An Inside Bar is one or a few small candles that sit entirely within the range of the candle before them (the mother bar), showing the market is consolidating. When a candle closes above the mother bar high, the indicator draws a BUY arrow; when it closes below the mother bar low, it draws a SELL arrow. A wick that pokes out and pulls back inside the mother bar is not a breakout.

You can filter signals with a moving average (EMA 50 by default): keep only signals with the trend, or only signals against the trend to catch reversals. When a signal appears, the indicator shows an Alert window, plays a sound and sends a notification to your phone.

License: everyone gets a 30-day trial on any account. Customers with a licensed HoangTrong.com EA (single, COMBO or Exness IB) use it free forever: just run the new EA version on the same computer.

Signals

Upside breakout
  • BUYA candle closes above the mother bar high; arrow and "Inside Bar" label below the candle
Downside breakout
  • SELLA candle closes below the mother bar low; arrow and "Inside Bar" label above the candle

Only closed candles are checked, so arrows never repaint. The mother bar box is a grey dotted box while waiting for a breakout and takes the arrow colour once price breaks out. BUY arrows are turquoise, SELL arrows orange (changeable in the Colors tab), different from the Pinbar and Engulfing indicators so they stay easy to tell apart on one chart.

Inputs

Inside Bar settings2 settings

An inside candle has a high no higher and a low no lower than the mother bar. Up to N consecutive inside candles are allowed before the breakout; beyond N the pattern is skipped. Very short mother bars (few points) are usually noise and are filtered out.

Maximum inside candles in the mother bar3 (1 to 20)
Minimum mother bar length100 points (0 = off)
MA trend filter5 inputs

No filter: show all signals. With the trend: BUY only when the candle closes above the MA, SELL only below it. Against the trend: the opposite, for catching reversals. The MA line can be drawn on the chart.

Filter signals by MANo filter
MA period50
MA typeEMA
Applied priceClose
Draw the MA lineNO
Display8 settings

The mother bar box shows the consolidation zone and the price level to break. An arrow distance of 0 is automatic, based on the average length of recent candles. The recalculated bar count limits how much history is drawn to keep the chart light (0 = all).

Draws the mother bar boxYES
Colour of the box waiting for a breakoutGrey
Show the "Inside Bar" label next to arrowsYES
Font size8
Arrow distance from the candle0 (automatic)
BUY arrow symbol233
SELL arrow symbol234
Bars to calculate1000
Alerts5 inputs

Each signal is alerted once, when the candle closes. You can also be alerted when an Inside Bar has just formed so you can prepare. Phone notifications need your MetaQuotes ID in Tools > Options > Notifications.

Alert when an Inside Bar has just formedNO
Alert popupYES
Sound (when Alert is off)NO
Sound filealert.wav
Phone notificationsYES

Changelog

Version 1.019/11/2026

First release of the Inside Bar candlestick pattern detector indicator.

  • Draws the mother bar box
  • Arrows on breakouts
  • MA trend filter
  • Phone alerts

FAQ

Does the indicator cost anything?
No. Everyone gets a 30-day trial. After 30 days, if a licensed HoangTrong.com EA runs on the computer (single, COMBO or Exness IB), the indicator keeps working for free, forever.
Why is there an Inside Bar but no arrow yet?
The indicator only draws an arrow when price closes outside the mother bar. While waiting, the mother bar is marked with a dotted box extending to the current candle. If there are more inside candles than the maximum (3 by default) and price still has not broken out, the pattern is skipped.
Does the indicator open trades?
No. The indicator only draws boxes, arrows and alerts; you decide when to enter.
Can I use it together with the Pinbar and Engulfing indicators?
Yes. Each indicator has its own arrow colour and its own label next to the arrows, so they stay easy to tell apart on one chart. The trial period is counted separately for each indicator.

Besides the Inside Bar candlestick pattern detector indicator

Other products from HoangTrong.com

View all products
CB-2001IndicatorsMT4MT5

Pinbar candlestick pattern detector indicator

Automatically detects Pinbar candles, draws BUY, SELL arrows with a Pinbar label, filters by MA trend, plays a sound and notifies your phone.

  • BUY, SELL arrows labelled Pinbar
  • Filter with or against the MA trend
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
CB-2002IndicatorsMT4MT5

Engulfing candlestick pattern detector indicator

Automatically detects engulfing candles, draws BUY, SELL arrows with an Engulfing label, filters by MA trend, plays a sound and notifies your phone.

  • BUY, SELL arrows with an Engulfing label
  • Filter with or against the MA trend
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
CB-1001IndicatorsMT4MT5

RSI divergence detector indicator

Automatically finds divergences between price and RSI (regular and hidden), connects 2 highs or lows on the price chart, draws BUY, SELL arrows, filters by MA trend and notifies your phone.

  • Regular and hidden divergence
  • Connects 2 highs, lows right on the price chart
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details

Need a different feature?

Order a custom EA built on your strategy, priced per feature.