Trading robot · MT4 · MT5

The Gold Reaper

by bestsangtao

The Gold Reaper is an expert advisor compatible with both MetaTrader 4 and MetaTrader 5, specifically designed for gold trading.

GitHub stars1
Forks1
Last update2 days ago2 Oct 2026
LicenceNone stated

Overview

The Gold Reaper executes trades based on fake breakout filters and high-low trailing stop losses, with options to restrict operations by trade frequency, spread, and specific hours on Fridays. The EA features integrated news filtering for Non-Farm Payrolls, automatic GMT calculations, and adjustable parameters tailored for proprietary firm accounts. It requires a hedging account structure to manage multiple open positions on the same symbol.

Details

Author

bestsangtao on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Breakout, Hedging

Markets

Gold

Timeframes

Any timeframe

Risk Profile

  • Holds opposite positions at once

Input Parameters

Read from The Gold Reaper V4.7 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_TradeFrequencyAuto_Frequency
MaxSpreaddouble500Maximum allowed spread
UseHL_TrailingSLbooltrue
FridayStopHourint25Friday stop hour (brokertime; close all trades)
FridayClosePendingbooltrue
FridayCloseOpenbooltrue
setSL_TP_After_Entryboolfalse
Virtual_expirationbooltrueUse 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 bestsangtao/TheGoldReaper 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.
  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 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

EA XAUUSD Premium

by diditgravatar
4 stars

This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of EA XAUUSD Premium

Adaptive Breakout Basket

by hutamisiina
2 stars

This MetaTrader 5 expert advisor is an experimental trading robot that implements a pseudo-straddle breakout strategy. It automatically opens buy positions when the price breaks recent M1 highs, and sell positions when it breaks recent M1 lows, provided a minimum entry distance is maintained. The expert advisor manages

MT5 Trading robot BreakoutHedging

Gann Fan Bot

by AbasNiknam
1 stars

This MetaTrader 4 expert advisor automates trading based on Gann Fan theory by identifying trend angles from recent swing highs and lows. It enters the market using buy and sell stop orders placed at specific distances from detected Gann lines. The robot includes risk management features such as fixed stop loss, take p

MT4 Trading robot Trend followingBreakoutHedging
Updated 12 months ago None stated GitHub repository of Gann Fan Bot

Inside Bar Grid EA

by danielworthy
1 stars

This MetaTrader 4 robot implements a grid-based hedging strategy triggered by inside bar price formations. It places multiple pending orders on both sides of a breakout and uses martingale lot scaling to increase position sizes for subsequent entries. The expert advisor is designed for the H4 and Daily timeframes, util

MT4 Trading robot BreakoutGridMartingale High risk
Updated 6 months ago None stated GitHub repository of Inside Bar Grid EA

Experienced FX Trader

by simonokwundue-ops
1 stars

This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate

MT5 Trading robot ScalpingBreakoutIndicator crossover
Updated 10 months ago None stated GitHub repository of Experienced FX Trader

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