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.

Robot Forex MT4MT5 GD-1002v1.0 Lifetime 7-day trial 18/11/2026
Two-MA crossover

BUY when the fast MA crosses above the slow MA, SELL when it crosses below. A reverse mode is available for reversal strategies.

Customize each MA

Period and MA type (SMA, EMA, SMMA, LWMA) set separately for the fast and slow MA, with a selectable applied price.

Signals on closed candles

The EA only checks crossovers on closed candles, each signal is used once, with no noise while a candle is forming.

Automatic order management

Break-even, Trailing Stop, order limits, distance between 2 orders, 1 order per candle, trading hours and maximum spread.

Overview

MA Crossover Forex Robot (code GD-1002) is an EA for MetaTrader 4 and MetaTrader 5 that opens BUY and SELL orders on the crossover of two moving averages. The fast MA (short period, default 10) reacts quickly to price, while the slow MA (long period, default 50) shows the overall trend.

When the fast MA crosses above the slow MA, price has upward momentum and the EA opens a BUY. When the fast MA crosses below the slow MA, the EA opens a SELL. The EA checks crossovers on closed candles of the timeframe you choose: candle 1 is the one that just closed, candle 2 the one before it. Each signal is used only once.

The EA has stop loss, take profit, break-even, Trailing Stop, order limits, trading hours and maximum spread. One single file covers the 7-day demo trial and live trading once licensed.

The EA stops sending orders when the server connection drops, the Algo Trading button is off or the market is closed, and shows the status on its panel. Every order carries the comment "www.HoangTrong.com" and the product's own magic number.

Entry scenarios

CrossoverDefault valueYES
  • BUYFast MA crosses above slow MA
  • SELLFast MA crosses below slow MA
ReverseDefault valueNO
  • BUYFast MA crosses below slow MA
  • SELLFast MA crosses above slow MA

Checked on closed candles: on candle 2 the fast MA is still below (or above) the slow MA, on candle 1 it has crossed. Turn on only one of the two scenarios. Direction: Both BUY and SELL, BUY only, SELL only.

Inputs

General inputs4 inputs

Only opens new orders within the hours you enter (broker time, several ranges separated by commas) and when the spread is not above the maximum. Signals are calculated on the chosen timeframe.

Magic number0 (per symbol)
Maximum spread250 point
Trading hours00:00 - 23:59
TimeframeH1
Order inputs5 inputs

Stop loss and take profit are in points from the entry price; enter 0 for none. Additional orders only open when price is at least the set number of points away from an existing order in the same direction. Close opposite orders: a BUY signal closes the EA's SELL orders, and vice versa.

Lot size0.01 lot
Stop loss5000 point
Take profit5000 point
Distance between 2 same-direction orders0 (no limit)
Close opposite ordersNO
Order count limits4 inputs

Never exceeds the maximum number of orders (total, BUY, SELL; 0 means no limit). At most 1 order per candle, and orders closed within the candle still count.

Total BUY + SELL10
Max BUY5
Max SELL5
1 order per candleYES
MA inputs5 inputs

The fast MA period must be smaller than the slow MA period. MA types: SMA (simple), EMA (exponential), SMMA (smoothed), LWMA (linear weighted).

Fast MA period10
Fast MA typeEMA
Slow MA period50
Slow MA typeEMA
Applied priceClose
Entry scenarios3 inputs

Choose normal crossover or reverse; see the Entry scenarios tab for how entries work.

CrossoverYES
ReverseNO
Trade directionBoth BUY and SELL
Break-even and Trailing Stop7 inputs

Break-even: once profit reaches the set points, the stop loss moves to the entry price plus a small buffer for fees, once. Trailing Stop: once profit reaches the set points, the stop loss follows price at a fixed distance. The stop loss never moves backwards.

Break-evenNO
When profit reaches2000 point
SL above entry by100 point
Trailing StopNO
Start when profit reaches3000 point
Keep SL away from price by1500 point
Minimum step100 point
Other inputs1 input

Sends a notification to the MetaTrader app on your phone when orders open or close (requires your MetaQuotes ID in MetaTrader).

Phone notificationsYES

Changelog

Version 1.018/11/2026

First release of the MA Crossover Forex Robot.

  • Two-MA crossover
  • Customize each MA
  • Signals on closed candles
  • Automatic 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.

Can I change the account ID?

Yes, for an ID change fee (cheaper than buying new). The bank account paying the fee must belong to the original license holder; otherwise the request is handled manually.

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.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID

Besides the MA Crossover 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-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
GD-2001Candlestick patternMT4MT5

Pinbar Forex Robot

The EA opens BUY and SELL orders when a Pinbar forms at the nearest high or low, with built-in stop loss, take profit, break-even and Trailing Stop.

  • Detects Pinbars by wick-to-body ratio
  • Filters Pinbars at the high or low of the last N candles
  • 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.