VI

Inside Bar Breakout Forex Robot

The EA opens BUY and SELL orders when price breaks out of an Inside Bar pattern, with Stop Loss at the mother candle, Take Profit by R:R ratio, breakeven and Trailing Stop.

Robot Forex MT4MT5 GD-2003v1.0 Lifetime 7-day trial 21/11/2026
GD-2003 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic number (0 = taken from the product code)
01Max spread to open orders (points, 0 = no limit)
abTrading hours (server time), separate ranges with commas
Timeframe
ab========================================ORDER SETTINGS
½Volume (lot)
Stop Loss mode
01Stop Loss in points (0 = none)
01Stop Loss buffer beyond mother candle (points)
Take profit mode
½R:R ratio (Take Profit = Stop Loss x ratio)
01Take Profit in points (0 = none)
Close opposite orders on a new signal
ab========================================ORDER LIMITS
01Max total BUY + SELL orders (0 = no limit)
01Max BUY orders (0 = no limit)
01Max SELL orders (0 = no limit)
At most 1 order per candle (of the timeframe)
ab========================================INSIDE BAR SETTINGS
01Max inside candles (1 to 10)
01Min mother candle range (points, 0 = off)
01Max mother candle range (points, 0 = off)
Draw the mother candle box on the chart
ab========================================ENTRY SCENARIOS
Breakout: candle closes outside the mother candle
Pending: Buy Stop, Sell Stop
01Pending distance from mother high/low (points)
01Delete pending orders after N candles (0 = never)
Trade direction
ab========================================MA TREND FILTER
Filter signals by MA
01MA period
MA type
Applied price
ab========================================BREAKEVEN AND TRAILING STOP
Move Stop Loss to breakeven
01When the order is in profit by (points)
01Stop Loss beyond entry price (points, to cover costs)
Trailing Stop: Stop Loss follows price
01Start when the order is in profit by (points)
01Keep Stop Loss away from price (points)
01Minimum step (points)
ab========================================OTHER SETTINGS
Phone notification when orders open / close
LoadSave

How the EA works

The EA looks for an Inside Bar on closed candles: a mother candle with up to 3 inside candles fully within it. Price breaking out of the mother candle is a signal; the EA enters as soon as a candle closes outside the mother candle, or places pending orders on both sides in advance.

Stop Loss: below the mother candle lowTake Profit = Stop Loss x 1.5Close above the mother candle: BUYMother candle + 2 inside candlesBuy StopSell StopPending: placed around the mother candle
Left: the Breakout scenario (default), a close above the mother candle high gives a BUY with Stop Loss below the mother candle low. Right: the Pending scenario, Buy Stop above the high and Sell Stop below the low of the mother candle.

Entry scenarios

  • BreakoutDefault: YES
    • BUYCandle closes above the mother candle high
    • SELLCandle closes below the mother candle low
  • Pending ordersDefault: NO
    • BUYBuy Stop 50 points above the mother candle high
    • SELLSell Stop 50 points below the mother candle low

When there is a signal

  1. 1Check conditions

    A new order opens only when all of these hold.

    • Within 00:00 - 23:59 (server time), spread no more than 250 points
    • Fewer than 10 orders, at most 5 BUY and 5 SELL
    • At most 1 order per H1 candle
  2. 2Open the order

    Stop Loss at the mother candle, Take Profit by R:R ratio.

    • Volume 0.01 lot
    • Stop Loss: BUY below the low, SELL above the high of the mother candle, plus 50 points
    • Take Profit = Stop Loss distance x 1.5 (can switch to points)
  3. 3Order management

    Two automatic functions, off by default, each turned on separately.

    • Breakeven: at 2000 points profit, Stop Loss moves to entry + 100 points
    • Trailing Stop: from 3000 points profit, Stop Loss follows price 1500 points away
    • Stop Loss only moves in the profitable direction
  • Inside Bar: mother candle at least 1000 points long (1 dollar on gold), up to 3 inside candles fully within it.
  • Checked on closed candles; each pattern is traded only once.
  • Turn on only one of the two scenarios. Direction: Both BUY and SELL, BUY only, SELL only.
  • The MA filter is off by default; turn it on to trade only with or only against the MA trend.
  • To see the pattern on the chart without automatic trading: Inside Bar indicator CB-2003 (free).
Inside Bar detection

A mother candle with up to 3 inside candles fully within it, mother candle at least 1000 points long. The number of inside candles and the minimum and maximum mother candle range are all adjustable.

Two ways to enter

Breakout: enter as soon as a candle closes outside the mother candle. Pending: place Buy Stop and Sell Stop around the mother candle in advance; when one fills the other is deleted.

Stop Loss at the mother candle

Stop Loss sits at the opposite side of the mother candle, Take Profit equals the Stop Loss distance times the R:R ratio. You can switch to Stop Loss and Take Profit in points.

Trend filter and order management

MA filter (off by default), breakeven, Trailing Stop, order limits, trading hours, max spread. The mother candle box is drawn on the chart.

Overview

Inside Bar Breakout Forex Robot (code GD-2003) is an EA for MetaTrader 4 and MetaTrader 5 that opens BUY and SELL orders when price breaks out of an Inside Bar candlestick pattern. An Inside Bar consists of a mother candle and one or more inside candles that stay within the mother candle's range, showing the market is consolidating. A close beyond the mother candle often starts a new move.

The EA detects Inside Bars the same way as the CB-2003 indicator: a mother candle at least 1000 points long (1 dollar on gold) and up to 3 inside candles. The Breakout scenario (default) enters as soon as a candle closes above the high or below the low of the mother candle. The Pending scenario places a Buy Stop above the high and a Sell Stop below the low of the mother candle; when one fills, the other is deleted automatically.

Stop Loss defaults to the opposite side of the mother candle, and Take Profit equals the Stop Loss distance times an R:R ratio of 1.5. The EA has an MA trend filter (off by default), breakeven, Trailing Stop, order limits, trading hours and a max spread. One file covers the 7-day demo trial and live trading with a license.

The EA stops sending orders when the server connection is lost, Algo Trading is off or the market is closed, and shows the status on its panel. The mother candle box is drawn on the chart so you can see the pattern the EA is watching. Every order has the comment "www.HoangTrong.com" and the product's own magic number.

Changelog

Version 1.021/11/2026

First release of Inside Bar Breakout Forex Robot.

  • Inside Bar detection
  • Two ways to enter
  • Stop Loss at the mother candle
  • Trend filter and order management

FAQ

Is the trial version different from the full version?

No. Each product has a single file. Without a license it runs for 7 days on a demo account. Buy a license for your account ID and it runs on your live account, no new download needed.

What is WebRequest and why does the EA need it?

WebRequest is the permission that lets an EA connect to an address on the internet. HoangTrong.com EAs use it to activate the license, then check themselves offline. See how to enable WebRequest.

How do I activate the license?

Buy a license for the correct MetaTrader account ID, then click Activation in the EA. You don't need to enter or store any key. After reinstalling, just activate again.

What if I want to use the EA on another account ID?

A license is permanently tied to the account ID it was bought for. To use the EA on another ID, buy an extra ID right on the product page: if you already own the license, each extra ID costs only 100,000 VND.

Multi-account licenses

Extra IDs only 100,000 VND/ID

Each license includes 1 account ID. Each extra ID is only 100,000 VND, for both retail and COMBO prices, valid forever.

  1. What is an account ID?It's your MT4/MT5 login number, shown in MetaTrader and in the email the broker sends when you open the account.
  2. Buy several IDs at onceEnter IDs separated by commas, for example 12345678, 87654321. Up to 20 IDs per order.
  3. Add IDs laterOnce you have a license, come back to this page, enter the new ID and click Buy a license. You're only charged 100,000 VND per ID, not the license price again.
Buying extra IDs: sign in firstSign in with the website account you bought the license with to get the 100,000 VND per ID price. With a different website account, the system cannot see your license and charges the full license price.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID (signed in)

Besides Inside Bar Breakout Forex Robot

Other products from HoangTrong.com

View all products
GD-1001Indicator-basedMT4MT5

RSI Overbought Oversold Forex Robot

The EA opens BUY and SELL orders on RSI signals in the overbought and oversold zones, with built-in stop loss, take profit, break-even and Trailing Stop.

  • 3 RSI entry scenarios, each can be switched on or off
  • Stop loss, take profit, break-even and Trailing Stop
  • Limits on order count, trading hours, spread, 1 order per candle
Retail price500,000 VND
Details
GD-1002Indicator-basedMT4MT5

MA Crossover Forex Robot

The EA opens BUY and SELL orders when the fast MA crosses the slow MA, with built-in stop loss, take profit, break-even and Trailing Stop.

  • BUY when the fast MA crosses up, SELL when it crosses down
  • Separate period and MA type for each line
  • Stop loss, take profit, break-even and Trailing Stop
Retail price500,000 VND
Details
GD-1003Indicator-basedMT4MT5

Robot Forex Bollinger Bands

The EA opens BUY and SELL orders on Bollinger Bands: price returning inside the bands or breaking out, with built-in stop loss, take profit, break-even and Trailing Stop.

  • Return inside the band to catch reversals, switchable
  • Band breakout to ride momentum, switchable
  • Stop loss, take profit, break-even and Trailing Stop
Retail price500,000 VND
Details

Need a different feature?

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