Collection · MT5

Gold Pro Scalper

by n30dyn4m1c

This collection of MetaTrader 5 expert advisors focuses on mean-reversion and breakout strategies for gold (XAUUSD) on the M1 timeframe.

GitHub stars15
Forks10
Last update6 weeks ago6 Aug 2026
LicenceMIT

Overview

The primary logic identifies statistical extremes using Z-Score calculations to trade price snap-backs. It includes a TickRobust variant designed to filter execution noise and a dual-strategy version that incorporates Donchian channel breakouts. Risk controls are extensive, featuring fixed stop losses, ATR-based trailing, news filters, and a daily equity loss limit. Trade execution is managed through session windows, position limits, and post-loss cooldown periods.

Details

Author

n30dyn4m1c on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, Breakout, Scalping

Markets

Gold

Timeframes

M1-M5

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Topics

expert-advisorgoldmetatrader5mql5tradingxauusd

Input parameters

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

NameTypeDefaultDescription
InpTradeSymbolstringGOLDTrade symbol (GOLD, XAUUSD, etc.)
InpEntryZdouble2.0Z-Score entry threshold
InpUseDynamicRiskbooltrueEnable equity-based risk tiers (overrides InpRiskPct)
InpRiskPctdouble10.0Risk % per trade (used when dynamic risk is off)
InpSLPointsdouble800Fixed SL in points (survives gold spikes)
InpHardTPPointsdouble1500Hard TP in points (server-side safety net, wide)
InpExitZdouble0.5Z-Score exit threshold (close when Z returns near 0)
InpTrailingATRdouble2.0ATR multiplier for trailing
InpMinProfitBufferdouble50.0Minimum profit buffer in points before breakeven triggers
InpStartHourint10Trade window start hour
InpEndHourint20Trade window end hour (exclusive)
InpFridayCloseHourint20Friday hour to close and stop
Show all 29 inputs
NameTypeDefaultDescription
InpMaxHoldMinutesint30Max trade duration in minutes
InpCooldownMinsint10Pause after a losing trade, minutes (0 = disabled)
InpMagicint777333Magic number
InpMAPeriodint20MA / StdDev period
InpATRPeriodint14ATR period
InpFilterPeriodH1int50H1 SMA period for trend filter (0 = disabled)
InpADXPeriodint14ADX period
InpADXMaxdouble25.0Skip entries when ADX above this (0 = disabled)
InpSlippageint30Max slippage in points
InpMaxSpreadPtsdouble50.0Max allowed spread in points
InpMaxPositionsint1Max open positions allowed
InpUseNewsFilterbooltrueEnable news time filter
InpNewsMinsBeforeint60Minutes to pause BEFORE red-folder news
InpNewsMinsAfterint120Minutes to pause AFTER red-folder news (washout buffer)
InpCloseBeforeNewsbooltrueClose open trades before red-folder news
InpUseDailyLossLimitbooltrueEnable max daily loss stop
InpMaxDailyLossPctdouble20.0Max daily loss % of balance (stops trading)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone n30dyn4m1c/gold-pro-scalper 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

5 stars

This collection of Expert Advisors for MetaTrader 5 provides specific automated strategies for Gold, Bitcoin, EURUSD, and Nasdaq. The repository includes modules for ATR breakouts, Bollinger Band mean reversion, and opening range breakouts. Risk management is handled through a three-stage take profit system, automated

MT5 Collection BreakoutMean reversionScalping
3 stars

A collection of systematic Expert Advisors for MetaTrader 5 designed for session-specific execution. The repository includes multiple specialized engines for strategies such as range reversion, breakouts, and trend following. It features a centralized risk management layer with spread caps, daily loss limits, and conse

MT5 Collection Mean reversionBreakoutTrend following
1 stars

This repository contains a collection of MetaTrader 5 expert advisors created to test various trading concepts. The included bots trade diverse markets, utilizing indicators like moving averages, Bollinger Bands, Stochastic, and VWAP. The primary highlighted expert advisor executes trend-following trades on gold using

MT5 Collection Trend followingBreakoutScalping
Updated 2 years ago None stated GitHub repository of MQL5 Bots Collection

MT5 Strategies Collection

by vincentwongso
1 stars

This repository provides a collection of expert advisors for MetaTrader 5, featuring various technical strategies. The primary implementation is the Trading Made Simple system, which utilizes Hull Moving Average crossovers, Heiken Ashi candles, and Stochastic filters to identify entry signals. Other included robots foc

MT5 Collection Indicator crossoverBreakoutScalping
Updated 7 months ago None stated GitHub repository of MT5 Strategies Collection

FINS QQQ Development

by atanasvasilevjourney
1 stars

This MetaTrader 5 repository contains a collection of expert advisors centered on opening range breakouts and statistical mean reversion. The primary breakout tool defines trading zones based on specific time intervals and executes trades using price bias or candle closes. It incorporates robust risk management feature

MT5 Collection BreakoutMean reversionScalping
Updated 7 months ago None stated GitHub repository of FINS QQQ Development

Shakuni Trap

by vedkanani123
1 stars

Shakuni Trap is a MetaTrader 5 research laboratory focusing on systematic gold trading. The collection features multiple Expert Advisors, with the primary OneShot version utilizing M1 to M5 timeframes. This strategy executes trades based on EMA bounces or Donchian Channel breakouts, requiring alignment with higher time

MT5 Collection Trend followingBreakoutMean reversion
Updated 4 weeks ago None stated GitHub repository of Shakuni Trap

More collections

Need a broker for MT5?

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

Compare brokers