Trading robot · MT5

Gold Grid Stop DCA EA

by LiinIT

The EA is a scalping robot for XAUUSD on MetaTrader 5.

High risk

GitHub stars1
Forks0
Last update7 days ago12 Oct 2026
LicenceNone stated

Overview

Gold Grid Stop DCA EA enters trades by placing pending stop orders aligned with EMA trend on M1. After entry, DCA adds up to 4 orders in the basket every 2 points with fixed lot size and max 0.05 lot. The basket uses shared stop loss 15 points away. It applies basket trailing when profit reaches 6 USD and hedging on 7-point opposite moves, exiting after 30 minutes or profit. Sideway ADX filter on M5 and reversal cut exits are included. Default settings disable break-even and trailing stops.

Details

Author

LiinIT on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Scalping, Grid, Hedging

Markets

Gold

Timeframes

M1-M5

Risk Profile

  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once

Input Parameters

Read from 13_SuperScalping_DCA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpTradeSymbolstringXAUUSDm
InpMagicNumberulong999889
InpLotSizedouble0.01
InpTotalLimitOrdersint1
InpFirstOrderDistancedouble0.5
InpStepDistancedouble0.5
InpUseDCAbooltrue
InpDCALevelsint4
InpDCAStepdouble2.0
InpDCALotMultiplierdouble1.0
InpMaxBasketLotdouble0.05
InpUseBasketTrailbooltrue
Show all 40 inputs
NameTypeDefaultDescription
InpBasketTrailStartUSDdouble6.0
InpBasketTrailGivebackPctdouble35.0
InpUseBasketTakeProfitboolfalse
InpBasketProfitUSDdouble20.0
InpUseHedgebooltrue
InpHedgeTriggerMovedouble7.0
InpHedgeTimeframeENUM_TIMEFRAMESPERIOD_M1
InpHedgeExitProfitUSDdouble10.0
InpHedgeMaxMinutesint30
InpUseSidewayFilterbooltrue
InpSidewayTimeframeENUM_TIMEFRAMESPERIOD_M5
InpADXPeriodint14
InpMinADXdouble20.0
InpReversalModeENUM_REVERSAL_MODEREVERSAL_CUT
InpReversalConfirmBarsint2
InpInitialSLPricedouble15.0
InpUseRollingSLboolfalse
InpSLTimeframeENUM_TIMEFRAMESPERIOD_M1
InpSLBarsint15
InpSLBufferdouble0.20
InpRollingStepdouble0.30
InpUseBreakEvenboolfalse
InpBreakEvenStartdouble4.00
InpBreakEvenOffsetdouble3.00
InpUseTrailingSLboolfalse
InpTrailingStartdouble2.00
InpTrailingDistancedouble0.70
InpTrailingStepdouble0.20

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone LiinIT/Bot-EA13-Trading-XAUUSD-Scaping from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar Expert Advisors

8 stars

High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s

MT5 Trading robot GridMean reversionScalping High risk

AutoTrade EA

by liucheng-12-08
3 stars

AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa

MT4MT5 Trading robot ScalpingIndicator crossoverMartingale High risk
Updated 8 months ago None stated GitHub repository of AutoTrade EA
1 stars

This machine learning expert advisor for MetaTrader 5 utilizes ensemble and deep learning models to analyze market patterns. It offers a versatile multi-strategy approach, allowing users to toggle between trend-following, scalping, and grid-hedging behaviors. Risk controls are comprehensive, featuring fixed percentage

MT5 Trading robot AI / machine learningMulti-strategyScalping High risk

HFT Grid AI

by loldlm1
1 stars

HFT Grid AI is a MetaTrader 5 Expert Advisor foundation built for high-frequency trading and grid-based strategies. It employs a broker-aware execution model that validates trade plans against local simulations before sending orders to the market. Key features include stochastic market structure analysis, session-based

MT5 Trading robot GridMean reversionScalping High risk
Updated 5 weeks ago None stated GitHub repository of HFT Grid AI

The Gold Reaper

by naming1086
1 stars

The Gold Reaper is a multi-strategy expert advisor for MetaTrader 4 and 5. It trades gold pairs using breakout and reversal entries based on fractals and ATR. Trades enter when spread and frequency conditions are met and exit via trailing stops or time-based rules. The EA includes NFP filters to pause during economic e

MT4MT5 Trading robot BreakoutTrend followingScalping High risk
Updated 3 weeks ago None stated GitHub repository of The Gold Reaper

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 4 months ago BSD-3-Clause GitHub repository of Nyao Scalper

More trading robots

Need a Broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers