Trading robot · MT4 · MT5

The Gold Reaper

by naming1086

The Gold Reaper is a multi-strategy expert advisor for MetaTrader 4 and 5.

High risk

GitHub stars1
Forks0
Last update3 weeks ago22 Sep 2026
LicenceNone stated

Overview

The Gold Reaper 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 events, prop firm drawdown protection, and adjustable lot sizing with randomization. It supports hedging accounts and provides an info panel for monitoring performance during testing or live trading.

Details

Author

naming1086 on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Breakout, Trend following, Scalping, Multi-strategy, Martingale, Grid, Hedging

Markets

Gold

Timeframes

Any timeframe

Risk Profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once

Input Parameters

Read from The Gold Reaper English MT5.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
lijntjestring============================================================
UseVariableValuesbooltrue
AdjustLotsizeToVariableValuesbooltrue
ShowInfoPanelbooltrue
UpdateInfoTestingboolfalseupdate infopanel during testing
InfoPanelSizeAdjustdouble1Adjustment for Infopanel size
SetFontSizeint0Force Font Size (0=disabled)
BacktestSpeed_stringstring------------------------------ Backtest Speed settings -----
BacktestSpeedBacktestSpeedOptionsspeed_normal
spreadfilterstring------------------------------ settings --------------------
AllowBuyTradesbooltrueAllow Buy Trades
AllowSellTradesbooltrueAllow Sell Trades
Show all 40 inputs
NameTypeDefaultDescription
TradeFrequencyenum_TradeFrequencyExtreme_Frequency
MaxSpreaddouble60Maximum allowed spread
UseHL_TrailingSLbooltrue
FridayStopHourint25Friday stop hour (brokertime; close all trades)
FridayClosePendingbooltrue
FridayCloseOpenbooltrue
setSL_TP_After_Entryboolfalse
Virtual_expirationboolfalseUse Virtual Expiration
Randomizationdouble0Randomization (entries and exit) in pips
FakeOutFilterFakeoutFilters2Fake Breakout Filter
ST1_MagicNumberint8000BaseMagicnumber
ST1_CommentstringThe Gold ReaperComment for trades
RemoveCommentSuffixboolfalse
NFP_FILTERstring----------------------- NFP Filter -----------------------
EnableNFP_Filterbooltrue
UseMQL5Calendarbooltrue
AutoGMTbooltrue
Broker_GMT_OFFSET_Winterint2GMT_OFFSET_Winter (AutoGMT=false or backtesting)
Broker_GMT_OFFSET_Summerint3MT_OFFSET_Summer (AutoGMT=false or backtesting)
NFP_CloseOpenTradesbooltrue
NFP_ClosePendingOrdersbooltrue
NFP_MinutesBeforeint100
NFP_MinutesAfterint60
propfirmsettingsstring----------------------- Propfirm unique trades settings ----
AdjustEntrydouble0
AdjustSLdouble0
AdjustTPdouble0
AdjustTrailSLdouble0

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone naming1086/TheGoldReaperEA from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  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

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
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

Prem Gold Advisor

by Premkumar238
1 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 8 weeks ago None stated GitHub repository of Prem Gold Advisor

MQ4 Master Collection

by hairibaba
3 stars

This repository provides a collection of MetaTrader 4 expert advisors and utility tools. It includes diverse trading strategies ranging from M1 scalping and Heiken Ashi trend following to swing-based approaches. The codebase features a robust trade management framework with classes for order execution, error handling,

MT4 Collection Trend followingScalpingIndicator crossover High risk Archived
Updated 7 years ago None stated GitHub repository of MQ4 Master Collection
2 stars

This collection for MetaTrader 5 provides several automated Expert Advisors designed for various symbols including forex, gold, and indices. The repository features Mecha Godzilla, a grid trading system using ATR-based spacing and bidirectional orders, alongside specialized bots for Asian session breakouts and H4 trend

MT5 Collection GridBreakoutTrend following High risk

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 10 months ago None stated GitHub repository of Prop Firm EA Fleet

More trading robots

Need a Broker for MT4/MT5?

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

Compare brokers