VI

Grid Averaging (DCA) Forex Robot with Per-Order Take Profit

Grid EA for gold: BUY and SELL run independently, adds an order with the same lot every 5 price points against it, and each order takes profit on its own at 5 points. Up to 100 orders per side.

Robot Forex MT4MT5 GD-5003v1.0 Lifetime 7-day trial 22/11/2026
DCA grid
SideBUYSELLStatusRunningRunningOrders3 / 1001 / 100Total lot0.030.01Furthest order2640.0002643.000Nearest order2650.0002643.000Next order at2635.0002648.000Profit / loss-12.00+1.70Lot · grid (point)0.01 lot · step 5000 · TP 5000Close a side at lossNot usedGrid running09:40 Opened BUY 0.01 lot, order 3 of the side
The EA panel on a MetaTrader chart (sample figures: BUY side has 3 orders at 2650, 2645, 2640; SELL side has 1 order at 2643; current price 2641). Click the top-right button to collapse or expand the panel.
Gold grid calculator
GD-5003 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic (0 = auto from product code)
01Max spread (point, 0 = ignore)
abFirst order hours (server time)
ab========================================TRADING SIDES
Run the BUY side
Run the SELL side
ab========================================ORDER GRID
½Lot per order (all orders the same)
01Add an order when price moves against (point)
01Take profit per order (point)
01Maximum orders per side
ab========================================ACCOUNT PROTECTION
½Close a side at loss (% of balance, 0 = off)
ab========================================WEEKEND
Do not open the first order from the time below
Close all orders from the time below (Friday)
abFriday time (server time)
ab========================================OTHER SETTINGS
Notify phone on order open / close
LoadSave

How the EA works

The BUY side and the SELL side are two separate order grids. Each grid goes through 3 steps: open the first order right away, add orders with the same lot when price moves against it, take profit on each order when price pulls back.

2635: order 4 if price keeps falling 2645: order 3 takes profit 2650: order 2 takes profit 2655: order 1 takes profit 5 dollars Order 1 · 0.01 Order 2 · 0.01 Order 3 · 0.01 Each order takes +5 USD, then the EA opens a new first order
Example BUY side with default settings on gold: each order takes profit on its own when price pulls back 5 points from its entry.
  1. 1Open the first order

    A side that is on and has no orders opens one right away, within the chosen hours.

    • BUYBuy 0.01 lot at the current price
    • SELLSell 0.01 lot at the current price
  2. 2Add grid orders

    When price moves 5 points against the furthest order, add one more with the same lot, up to 100 orders.

    • BUYPrice 5 points below the lowest BUY
    • SELLPrice 5 points above the highest SELL
  3. 3Take profit on each order

    Each order has its own take profit placed on the broker server; whichever order reaches its level is closed.

    • BUYEntry price + 5 points
    • SELLEntry price - 5 points
  • BUY and SELL run at the same time without affecting each other; turning a side off leaves its existing orders waiting for take profit.
  • When a side runs out of orders (the last one took profit), the EA opens a new first order right away.
  • An order that lost its take profit (rejected by the broker, removed by hand) gets it set again; if price is already past that level the EA closes the order itself.
  • Optional: close a whole side when its loss reaches a percentage of balance, then rest until the end of the day before running again.
  • From 20:00 Friday (server time) no first orders are opened; switch on the extra option to close all orders before the weekend.
Two independent sides

The BUY side and the SELL side run in parallel, each with its own order grid. Switch each side on or off in the settings, for example run BUY only while gold is trending up.

Same-lot order grid

All orders use the same lot (default 0.01). When price moves 5000 points (5 gold price points) against the furthest order of the side, the EA opens one more order.

Take profit on each order

Each order has its own take profit 5000 points from its entry, placed on the broker server so it still works when your computer is off. Whichever order reaches its level is closed, without waiting for the whole chain.

Reopens after take profit

When a side that is on runs out of orders, the EA opens a new first order right away, so the grid keeps following price up and down.

Up to 100 orders per side

When a side reaches the maximum, it stops adding orders and waits for take profits. The chart panel shows the order count, next entry price and profit or loss of each side.

Account protection

Optional: close a whole side when its loss reaches a percentage of balance, then rest until the end of the day. Weekend: no first orders, or close all orders from 20:00 Friday.

Overview

Grid Averaging (DCA) Forex Robot with Per-Order Take Profit (code GD-5003) is an EA for MetaTrader 4 and MetaTrader 5. It does not wait for an indicator signal: any side that is on and has no orders opens one right away, then spreads orders along a grid when price moves against it and takes profit on each order when price pulls back.

The BUY side and the SELL side run independently. On the BUY side, when price falls 5 points below the lowest BUY, the EA buys one more order with the same lot; the SELL side does the opposite, selling one more when price rises 5 points above the highest SELL. Each order has its own take profit 5 points from its entry, up to 100 orders per side.

Unlike RSI and MA Averaging (DCA) Forex Robot (GD-5001) which takes profit on the whole basket from the average price and increases the lot step by step, GD-5003 keeps a fixed lot and takes profit on each order. When price swings up and down within a range, the lowest orders (BUY) or highest orders (SELL) keep taking profit and reopening.

Default settings are made for gold XAUUSD. On brokers that quote gold with 3 decimals (for example 2650.125), 1 gold price point = 1000 points: a 5000 point step is 5 price points, and a 5000 point take profit is 5 price points. If your broker quotes gold with 2 decimals, 1 price point = 100 points, so divide the point settings by 10. For other symbols, adjust the step, take profit and maximum spread.

Example BUY side: buy 0.01 lot at 2650, price falls to 2645 and buys again, 2640 buys again. When price pulls back to 2645 the 2640 order takes +5 USD; at 2650 the 2645 order closes; at 2655 the first order closes, the BUY side has no orders left and the EA opens a new BUY right away at 2655. Meanwhile the SELL side does the opposite, so whether price goes up or down some order takes profit. Work out each order price, floating loss and account blow-up price in advance with the Gold grid calculator.

Risk of grid trading. If price keeps moving one way against a side, the number of orders grows and the loss grows quickly. With 0.01 lot, a BUY side with all 100 orders means price has fallen 495 points from the first order; at 20 orders (price down 95 points) that side is down about 950 USD, and each further point costs another 20 USD. Test on a demo account, choose the lot to match your capital and consider turning on the option to close a side at loss.

Turning a side off stops new orders on that side; existing orders still wait for their take profit. The EA uses no stop loss on individual orders and no Trailing Stop. One single file runs the 7-day demo trial and live trading once licensed. Every order carries the comment "www.HoangTrong.com" and the product's own magic number.

Changelog

Version 1.022/11/2026

First release of the Grid Averaging (DCA) Forex Robot with Per-Order Take Profit.

  • Two independent sides
  • Same-lot order grid
  • Take profit on each order
  • Reopens after take profit
  • Up to 100 orders per side
  • Account protection

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 the Grid Averaging (DCA) Forex Robot with Per-Order Take Profit

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.