VI

MA with MACD and RSI Forex Robot

EA combining 3 indicators: EMA 50, EMA 200 set the trend, MACD gives the entry, RSI filters out overbought, oversold trades; stop loss beyond the nearest high, low, take profit by R:R.

Robot Forex MT4MT5 GD-9902v1.0 Lifetime 7-day trial 24/11/2026
MA + MACD + RSI · H1–EMA 50 · EMA 2002675.860 · 2669.350TrendUp (EMA 50 above EMA 200)MACD · Signal0.140 · 0.360RSI 1448.5Low · high of 10 candles2673.865 · 2680.800Signal crossOnZero crossOffPullback to EMA 50OffOpen positionBUY 1 · SELL 0Waiting for a MACD signal with the H1 trend16:00 Opened BUY: MACD crossed above Signal, uptrend
EA panel on the MetaTrader chart (illustrative figures, default settings). The panel is draggable; click the top-right button to collapse it.
Companion indicator, free
GD-9902 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic number (per 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
01Nearest high, low: candles checked
01Extra distance beyond the high/low (points)
01Stop Loss in points (0 = none)
½ATR stop loss: ATR 14 multiplier
Take profit
½R:R ratio (take profit = ratio x stop distance)
01Take Profit in points (0 = none)
01Min distance between 2 same-direction orders (points, 0 = no limit)
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========================================MA, MACD, RSI SETTINGS
Trend detection
01Fast EMA period (close)
01Slow EMA period (close)
01MACD: fast EMA period
01MACD: slow EMA period
01MACD: Signal period (SMA)
01RSI period
½BUY when RSI is below this level (avoid buying tops)
½SELL when RSI is above this level (avoid selling bottoms)
Extra: RSI on the same side of 50 (BUY above, SELL below)
ab========================================ENTRY SCENARIOS
MACD crosses Signal with the trend
MACD crosses zero with the trend
Price pulls back to the fast EMA then turns with the trend
Trade direction
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 uses three indicators at once on closed candles of the entry timeframe (H1 by default): EMA 50 and EMA 200 give the trend, MACD gives the entry, RSI filters out trades when price has run too far. The EA only trades with the trend.

0MACD 12, 26, 9BUYBUYBUYBUYBUYBUYBUYEMA 50EMA 200MACDSignalEntry point
The same H1 price section, with EMA 50, EMA 200, MACD and RSI 14 calculated exactly as the EA does. EMA 50 stays above EMA 200 throughout, so the trend is up and the EA only looks for BUY. Pick a scenario to see where the EA opens trades; the small dot on the MACD pane is the signal candle, the large gold dot is the entry at the open of the candle after the signal candle. RSI is below 70 at every signal here.

Entry scenarios

  • 1. Signal crossDefault: YES
    • BUYUptrend, MACD crosses above Signal
    • SELLDowntrend, MACD crosses below Signal
  • 2. Zero line crossDefault: NO
    • BUYUptrend, MACD crosses above 0
    • SELLDowntrend, MACD crosses below 0
  • 3. Pullback to EMA 50Default: NO
    • BUYPrice touches EMA 50, then a bullish candle closes above EMA 50
    • SELLPrice touches EMA 50, then a bearish candle closes below EMA 50

When there is a signal

  1. 1Check conditions

    A new order opens only when all of these hold.

    • With the EMA 50, EMA 200 trend and RSI 14 allowing it (BUY below 70, SELL above 30)
    • Within 00:00 - 23:59 (server time), spread no more than 250 points
    • No more than 10 trades, at most 5 BUY and 5 SELL; at most 1 trade per H1 candle
  2. 2Open the order

    Stop loss beyond the nearest high, low, take profit by R:R.

    • Volume 0.01 lot
    • BUY stop loss below the lowest low of 10 candles, SELL above the highest high, plus 100 points
    • Take profit at 2 times the stop distance
  3. 3Close trades

    Trades close at the stop loss or take profit set.

    • Break even and Trailing Stop can be added if you want
    • Close opposite trades on a new signal: turn on if wanted
  • The EA calculates EMA, MACD, RSI itself, no indicator needs to be attached. Signals come from closed candles.
  • Signal cross enters earliest and most often; zero cross gives fewer trades but the momentum is clear; the EMA 50 pullback enters at a better price while the trend is running.
  • Want to see the signals on the chart without auto trading: MA, MACD, RSI indicator CB-9902 (free). A simpler version using only MA and RSI: GD-9901 MA with RSI Forex Robot.
Three indicators, one decision

The EA calculates EMA 50, EMA 200, MACD 12, 26, 9 and RSI 14 on the same timeframe and only trades when all three agree.

Trend trading only

EMA 50 above EMA 200 means BUY only, below means SELL only, so it avoids trading against the big wave.

3 MACD scenarios

Signal cross (default), zero cross or pullback to EMA 50, each switched on, off separately.

RSI filters bad trades

No BUY when RSI is 70 or higher, no SELL when RSI is 30 or lower; turn on the extra RSI filter on the same side of 50.

Clear stop loss and take profit

Stop loss beyond the high, low of the last 10 candles, take profit at 2 times the stop loss distance (R:R ratio adjustable).

Panel on the chart

A draggable panel shows EMA, trend, MACD, Signal, RSI, the high, low of 10 candles and open trades.

Overview

MA with MACD and RSI Forex Robot (code GD-9902) is an EA for MetaTrader 4 and MetaTrader 5 that combines the three most popular indicators. EMA 50 and EMA 200 give the trend: EMA 50 above EMA 200 is an uptrend and the EA only BUYs; below is a downtrend and the EA only SELLs. MACD gives the entry, RSI filters out trades when price has run too far.

There are 3 scenarios switched on, off separately: MACD crosses Signal (default, early entry), MACD crosses zero (clear momentum) and price pulls back to EMA 50 then turns with the trend (better price). BUY only when RSI 14 is below 70, SELL only when RSI is above 30. Stop loss goes beyond the high, low of the last 10 candles, take profit at 2 times the stop loss distance.

Default settings are made for gold XAUUSD. On brokers quoting gold with 3 decimals (e.g. 2650.125), 1 gold price unit = 1000 points: an extra 100 points beyond the low is 0.1. On brokers with 2 decimals, 1 unit = 100 points, so divide point settings by 10.

Example with default settings on H1: EMA 50 at 2669.165 is above EMA 200 at 2663.878, so the trend is up. The 15:00 candle closes at 2670.491, MACD rises to -0.047 and crosses above Signal -0.163 (previous candle MACD -0.145, Signal -0.141), RSI 14 is 54.5, below 70. At 16:00 the EA opens BUY 0.01 lot at about 2670.491, stop loss 2666.670 (100 points below the lowest low of 10 candles, 3.821 away), take profit twice as far at 2678.134.

The chart panel shows EMA 50, EMA 200, trend, MACD, Signal, RSI, the low and high of 10 candles, enabled scenarios and open trades. For a simpler EA using only MA and RSI, see GD-9901; to see signals on the chart, use the CB-9902 indicator for free. A single file for the 7-day trial on a demo account and for live use with a license. Every trade is commented "www.HoangTrong.com", default Magic number 9902.

Changelog

Version 1.024/11/2026

First release of MA with MACD and RSI Forex Robot.

  • Three indicators, one decision
  • Trend trading only
  • 3 MACD scenarios
  • RSI filters bad trades
  • Clear stop loss and take profit
  • Panel on the chart

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 MA with MACD and RSI Forex Robot

Other products from HoangTrong.com

View all products
CB-9902IndicatorsMT4MT5

MA with MACD and RSI Indicator

Combines EMA 50, EMA 200, MACD and RSI: BUY, SELL arrows on the price chart with the trend, overbought, oversold filter, phone alerts.

  • Arrows with the EMA 200 trend
  • MACD crosses Signal, zero, EMA pullback
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
GD-8801Indicator-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-8805Indicator-basedMT4MT5

Multi-Timeframe RSI Forex Robot

EA opens orders on RSI overbought and oversold signals, filters signals with the RSI of 5 timeframes switched on or off separately, multi-timeframe RSI table right on the chart.

  • 3 RSI entry scenarios, same as GD-8801
  • 5 RSI filter timeframes, each with its own inputs and on/off
  • Multi-timeframe RSI table on the chart, unused filters clearly marked
Retail price500,000 VND
Details

Need a different feature?

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