Collection · MT5

XAU Scalp Hybrid Engine

by dev0xeb

A MetaTrader 5 expert advisor collection designed for trading gold (XAUUSD) on M5 and M15 timeframes.

GitHub stars1
Forks0
Last update3 months ago21 Aug 2026
LicenceNone stated

Overview

The main engine identifies setups using Fair Value Gaps, EMA21 slope filtering, optional Asian session liquidity sweeps, and a machine learning meta-labeling quality gate. It splits entries across three take-profit targets with configurable front-weighted, equal, or custom risk distribution. Risk management includes percentage-based or fixed lot sizing, minimum and maximum stop-loss bounds, spread filtering, and optional break-even trailing after the first target is hit. The repository contains four separate engine variants and has no README.

Details

Author

dev0xeb on GitHub

Type

Collection

Markets

Gold

Timeframes

M1-M5, M15-H1

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.

Input Parameters

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

NameTypeDefaultDescription
InpExecutionTimeframeENUM_EXEC_TIMEFRAMEEXEC_PERIOD_M5Execution Timeframe (M5 Recommended)
InpMacroTimeframeENUM_HTF_TIMEFRAMEHTF_PERIOD_M15Macro Trend Timeframe (M15 Recommended)
InpAccountRiskPctdouble3.0Total Account Risk per Setup (%)
InpRiskDistributionENUM_RISK_DISTRIBUTIONRISK_DIST_FRONT_WEIGHTEDRisk Distribution Mode
InpFixedLotPerTicketdouble0.0Fixed Lot per Ticket (0.0 = Use Risk % / Set > 0 for Fixed Lots)
InpTP1RiskPctdouble3.0Custom Ticket 1 Risk (% of Balance)
InpTP2RiskPctdouble2.0Custom Ticket 2 Risk (% of Balance)
InpTP3RiskPctdouble1.0Custom Ticket 3 Risk (% of Balance)
InpUseMetaLabelingbooltrueEnable Model 2.1 Meta-Labeling & Risk-Adjusted E[R] Engine
InpMinExpectedRdouble0.15Minimum Expected Risk-Adjusted Return E[R] Threshold (+0.15x R:R)
InpMLGateThresholddouble0.58ML Quality Gate Minimum Probability (0.58 = 58.0% Champion)
InpMinSLPipsdouble25.0Minimum SL Distance Floor (Pips / $2.50)
Show all 25 inputs
NameTypeDefaultDescription
InpMaxSLPipsdouble120.0Maximum SL Distance (Pips / $12.00)
InpMaxSpreadPipsdouble3.0Maximum Allowed Spread (Pips / $0.30 - Rejects Spread Spikes)
InpTrailingModeENUM_TRAILING_MODETRAILING_MODE_FIXEDTrailing Stop Mode (0=Fixed SL [Champion], 1=BE+Buffer on TP1)
InpBEBufferPipsdouble5.0Trailing SL Buffer above/below Entry after TP1 (Pips / 5.0 = $0.50)
InpMagicNumberint2001Magic Number (Personal Engine)
InpSessionModeENUM_SESSION_MODESESSION_ALL_DAYSession Trading Mode (SESSION_ALL_DAY = 24-Hour Trading)
InpStartHourUTCint6Session Start Hour (UTC) [Used if Custom]
InpEndHourUTCint17Session End Hour (UTC) [Used if Custom]
InpFVGMinPipsdouble2.5Minimum Fair Value Gap Size ($0.25)
InpRequireEMASlopebooltrueRequire M5 EMA21 Active Slope (Filters Out Sideways Range Chop)
InpAsianSweepOnlyboolfalseRequire Asian High/Low Liquidity Sweep (Disabled)
InpBuyColorcolorclrDodgerBlueBuy Order Arrow Color
InpSellColorcolorclrCrimsonSell Order Arrow Color

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone dev0xeb/xau 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, 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

Super Trading Collection

by RoyluxuryTrading
24 stars

This repository provides a collection of MetaTrader 4 and 5 expert advisors, including the modular Super Trading Bot series and an AI-driven trading template. The EAs utilize various technical indicators like Bollinger Bands, Parabolic SAR, and moving averages for trend-following and scalping. Built-in risk management

MT4MT5 Collection Trend followingScalpingAI / machine learning High risk
6 stars

This repository provides a collection of MetaTrader 5 expert advisors based on Smart Money Concepts and ICT methodologies. The tools implement price action strategies including Fair Value Gaps, Market Structure Shifts, and the Next Day Model. Each EA handles trade execution with automated risk-based lot sizing and conf

MT5 Collection SMC / ICT / price actionScalpingTrend following
3 stars

This repository provides a diverse collection of MetaTrader 4 and MetaTrader 5 expert advisors covering multiple trading methodologies. It includes robots for smart money concepts with fair value gap detection, Joe Ross hook patterns, and volatility-based scalping. The library features specific tools for XAUUSD and mul

MT4MT5 Collection SMC / ICT / price actionScalpingBreakout High risk

Kaisara Gold Scalping

by zulmusthafa1961-kaisara
1 stars

This expert advisor for MetaTrader 5 is designed to automate trading strategies based on the Kaisara Legacy and AProfitFX indicators. It primarily focuses on gold scalping by analyzing rectangular chart zones across multiple timeframes, specifically M5 and H1. The EA includes modules for scanning chart objects, managin

MT5 Collection ScalpingSMC / ICT / price actionTrend following
Updated 1 year ago None stated GitHub repository of Kaisara Gold Scalping
1 stars

XSpark is a modular automated trading framework for MetaTrader 5 that prioritizes capital protection and risk management. It includes a collection of distinct Expert Advisors covering various methodologies: a trend-pullback scalper, candle momentum tracking, Smart Money Concepts (SMC), and ICT liquidity models. The sys

MT5 Collection Trend followingScalpingSMC / ICT / price action
Updated 2 months ago None stated GitHub repository of XSpark Trading Engine
1 stars

Gold Micro HyperScalp EA is a MetaTrader 5 expert advisor focused on XAUUSD trading at M1 timeframe. It employs geometric micro-lot compounding for small accounts with a fallback risk percent setting and lot size cap. Entries trigger on SMC Asian liquidity sweeps, volume spikes, and CPR levels during London and New Yor

MT5 Collection ScalpingSMC / ICT / price actionTrend following High risk
Updated 6 weeks ago None stated GitHub repository of Gold Micro HyperScalp EA

More gold EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers