VI

RSI and MA Averaging (DCA) Forex Robot

DCA (averaging) EA for gold: first order from MA and RSI, adds orders when price moves against it, takes profit on the whole basket from the average price. BUY and SELL baskets run independently.

Robot Forex MT4MT5 GD-5001v1.0 Lifetime 7-day trial 20/11/2026
DCA by RSI and MA
BasketBUYSELLOrders4 / 100 / 10Total lot0.10-Average price2640.000-Next order at2630.000-Next lot0.05-Basket take profit2642.500-Profit / loss-40.00-Distance · lot increase5000 point · lot +0.01Cut basket at loss of-2000.00 USD (20%)Waiting for MA + RSI signal to open a new basket08:15 Opened BUY 0.04 lot, order 4 of the basket
The EA's panel on a MetaTrader chart (sample figures: a BUY basket of 4 orders from 2650 down to 2635, current price 2636). Click the button at the top right to collapse or expand the panel.
GD-5001 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic (0 = auto from product code)
01Max spread (point, 0 = ignore)
abNew basket hours (server time)
Signal timeframe
ab========================================FIRST ORDER: MA AND RSI
01MA period (trend filter)
MA type
MA applied price
01RSI period
RSI applied price
½Overbought level
½Oversold level
Enter when RSI enters the zone
Enter when RSI leaves the zone
Trade direction
ab========================================DCA ORDER CHAIN
½First order lot
Lot increase for next orders
½Arithmetic: add (lot)
½Geometric: multiply by
½Max lot per order (0 = ignore)
01Distance between orders (point)
01Max orders per basket
Add orders only while RSI is in the zone
ab========================================BASKET TAKE PROFIT AND STOP
01Take profit: from avg price (point, 0 = off)
½Cut basket at loss (% balance, 0 = off)
ab========================================WEEKEND
No new basket from time below (Friday)
Close all baskets from time below (Friday)
abFriday time (server time)
ab========================================OTHER SETTINGS
Notify phone on order open / close
LoadSave

How the EA works

BUY and SELL each have their own basket. A basket goes through 3 steps: open the first order on a signal, add orders when price moves against it, and take profit on the whole basket when price comes back near the average price.

2630: order 5 if price keeps falling Basket take profit 2642.5 Average price 2640 5 dollars Order 1 · 0.01 Order 2 · 0.02 Order 3 · 0.03 Order 4 · 0.04 Whole basket closed, profit ~25 USD
Example BUY basket with default settings on gold: price has not returned to the first order (2650) but the whole basket is already in profit.
  1. 1Open a new basket

    First order from MA + RSI on closed candles, Leave zone scenario by default.

    • BUYPrice above MA, RSI climbs back above 30
    • SELLPrice below MA, RSI falls back below 70
  2. 2Add DCA order

    When price moves 5 dollars against the farthest order, another order opens with a bigger lot, up to 10 orders.

    • BUYPrice 5 dollars below the lowest order
    • SELLPrice 5 dollars above the highest order
  3. 3Whole-basket take profit

    All orders share one take profit level, updated every time the basket adds an order.

    • BUYAverage price + 2.5 dollars
    • SELLAverage price - 2.5 dollars
  • One basket per direction: while a BUY basket is running, new BUY signals are ignored, but a SELL signal still opens a SELL basket.
  • The whole basket is cut when its loss reaches 20% of the balance (enter 0 to turn off).
  • From 20:00 on Friday (server time) no new baskets open; turn on the extra option to close all baskets before the weekend.
  • Signals use closed candles: price versus the MA on candle 1, RSI comparing candle 2 and candle 1.
Trend-filtered first order

Price above the MA opens only BUY baskets, below the MA only SELL baskets. RSI entering or leaving the oversold or overbought zone times the first order.

Adds orders when price moves against you

When price moves 5000 points (5 gold dollars) against the farthest order of the basket, the EA opens another order in the same direction, up to 10 orders per basket.

Two ways to increase the lot

Arithmetic: 0.01, 0.02, 0.03... Geometric: each order multiplied by a factor of 1.3. A maximum lot per order can be set.

Whole-basket take profit

All orders in the basket share one take profit level, 2500 points (2.5 dollars) from the average price. The level updates automatically whenever the basket adds an order.

Independent BUY and SELL baskets

The BUY basket and the SELL basket run side by side, each with its own average price, take profit and order count. The chart panel shows both baskets and can be dragged.

Account protection

Closes the whole basket when its loss reaches 20% of the balance. Separate switches: no new baskets, or close all baskets from 20:00 on Friday (server time).

Overview

RSI and MA Averaging (DCA) Forex Robot (code GD-5001) is an EA for MetaTrader 4 and MetaTrader 5. The first order opens on an MA plus RSI signal: the moving average (default EMA 50) sets the trend and the RSI (default period 6) picks the entry when it leaves the oversold or overbought zone. After that the EA manages the order chain with DCA.

All of the EA's orders in the same direction form one basket. When price moves 5 dollars against the farthest order of the basket, the EA opens another order in the same direction with a bigger lot, pulling the basket's average price closer to the current price. When price comes back to 2.5 dollars from the average price, the whole basket takes profit at once. The BUY and SELL baskets run independently and can both be open at the same time.

Default settings are made for gold XAUUSD. On brokers that quote gold with 3 decimals (for example 2650.125), 1 gold dollar = 1000 points: a 5000-point distance is 5 dollars and a 2500-point take profit is 2.5 dollars. On brokers that quote gold with 2 decimals, 1 dollar = 100 points, so divide the point settings by 10. For other symbols, adjust the distance, take profit and maximum spread.

Example BUY basket with arithmetic lots: order 1 buys 0.01 lot at 2650, price drops to 2645 and it buys 0.02 more, 0.03 at 2640, 0.04 at 2635. Total 0.10 lot, average price 2640, the whole basket takes profit at 2642.5 for about 25 USD, even though price has not returned to the first order. You can try your own order chain with the Gold DCA calculator.

DCA risk. If price keeps running against you, the basket grows and the loss rises fast. With the defaults (0.01 lot, arithmetic), a full basket of 10 orders is 0.55 lot with an average price 30 dollars from the first order; every further dollar adds about 55 USD of loss. Test on a demo account, size the lot to your capital and keep the basket loss cut on.

The EA does not use a Trailing Stop. The take profit is set on every order, so it still closes when your computer is off. One file gives a 7-day trial on a demo account and runs live once licensed. Every order carries the comment "www.HoangTrong.com" and the product's own magic number.

Changelog

Version 1.020/11/2026

First release of the RSI and MA Averaging (DCA) Forex Robot.

  • Trend-filtered first order
  • Adds orders when price moves against you
  • Two ways to increase the lot
  • Whole-basket take profit
  • Independent BUY and SELL baskets
  • 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 RSI and MA Averaging (DCA) 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.