Trading robot · MT5

EA Scalper XAUUSD

by francomascareloai

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold.

High risk

GitHub stars237
Forks64
Last update3 months ago20 Jun 2026
LicenceCustom licence

Overview

EA Scalper XAUUSD employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to different market regimes using the Hurst exponent. Risk is managed through ATR-based stop losses, target risk-to-reward ratios, and comprehensive drawdown circuit breakers. The developer notes the repository is a work-in-progress engineering snapshot rather than a finalized system.

Details

Author

francomascareloai on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Indicator crossover, Scalping, Trend following, Martingale

Markets

Gold

Timeframes

M1-M5, M15-H1

Risk Profile

  • Uses martingale lot scaling: losses can grow fast

Topics

algorithmic-tradinggold-tradingmachine-learningmetatrader5mql5nautilustraderprop-firmpython-tradingtrading-botxauusd

Input Parameters

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

NameTypeDefaultDescription
InpEAModeENUM_EA_MODEMODE_PURE_SCALPERTrading Mode (MUDA TUDO!)
InpBaseRiskdouble3.0Base Risk % per trade (ERA 2.0)
InpMaxRiskdouble10.0Maximum Risk % hot streak (ERA 5.0)
InpMinRiskdouble1.0Minimum Risk % (ERA 0.3)
InpMaxDailyDDdouble30.0Max Daily DD % - conta pessoal (ERA 10.0)
InpSoftDailyDDdouble15.0Soft Daily DD % (ERA 6.0)
InpMaxConsecLossesint5Max Consecutive Losses (ERA 4)
InpSL_ATR_Multdouble1.2SL = ATR × this (ERA 1.5 - mais tight)
InpTP_RRdouble3.0Target R:R ratio (ERA 2.0 - busca runners)
InpMinRRdouble1.5Minimum R:R (ERA 1.0 - só trades bons)
InpATR_Periodint14ATR Period
InpMaxTradesDayint50Max Trades per Day (ERA 30)
Show all 40 inputs
NameTypeDefaultDescription
InpMaxSpreadint50Max Spread points (ERA 100 - filtra lixo)
InpLondonOnlyboolfalseTrade London/Overlap only (learning decides)
InpLondonStartint7London Start Hour (GMT)
InpOverlapEndint16Overlap End Hour (GMT)
InpGMT_Offsetint2Broker GMT Offset
InpOB_Lookbackint20Order Block Lookback
InpOB_Displacementdouble0.8OB Displacement (ATR mult) - RELAXADO
InpSweep_Lookbackint20Liquidity Sweep Lookback
InpSweep_Tolerancedouble0.25Sweep Tolerance % - RELAXADO
InpUseMACrossbooltrueEnable EMA crossover setup
InpFastMAint8Fast EMA period
InpSlowMAint21Slow EMA period
InpUseRSIboolfalseUse RSI filter - DESATIVADO
InpRSI_Periodint14RSI period
InpRSI_OBint75RSI overbought - RELAXADO
InpRSI_OSint25RSI oversold - RELAXADO
InpUseFibobooltrueUse Fibonacci zones
InpFiboLookbackint30Lookback for swing detection - MENOR
InpFiboZonedouble50.0Tolerance (points) - MUITO RELAXADO
InpHurst_Windowint100Hurst Calculation Window
InpHurst_Trendingdouble0.55Hurst > this = Trending
InpHurst_Revertingdouble0.45Hurst < this = Reverting
InpBlockRandomWalkboolfalseBlock Random Walk Regime - DESATIVADO
InpUseLearningbooltrueEnable Self-Learning
InpMinTradesLearnint5Min trades before Kelly (ERA 10 - mais rápido)
InpLearningRatedouble0.20Learning rate (ERA 0.15 - aprende mais rápido)
InpPersistStatsbooltrueSave stats between sessions
InpUseBE_PartialbooltrueEnable BE + partial + trail

How to Install It

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

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 9 months ago None stated GitHub repository of Prop Firm EA Fleet

Simba Sniper EA

by oriokie
6 stars

This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity

MT5 Trading robot SMC / ICT / price actionScalpingTrend following High risk
Updated 8 months ago Custom licence GitHub repository of Simba Sniper EA

Swift Algo Bot

by connectfazla
2 stars

This MetaTrader 5 expert advisor provides an automated trading system with two primary operation modes: a multi-confluence signal engine and a Smart Money Concepts strategy. The confluence engine aggregates signals from RSI, MACD, Bollinger Bands, and EMA crossovers, while the Smart Money mode focuses on liquidity swee

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping
Updated 5 months ago None stated GitHub repository of Swift Algo Bot

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

Gold Trader EA

by mehdi-jahani
141 stars

Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n

MT5 Trading robot Multi-strategyTrend followingIndicator crossover
Updated 1 year ago None stated GitHub repository of Gold Trader EA

ICT Gold EA

by darula-hpp
36 stars

This automated trading system for MetaTrader 5 focuses on spot Gold using Inner Circle Trader methodology. It identifies entries through order block detection, market structure analysis, and weekly opening price levels. The strategy is further filtered by dual moving averages and specific trading sessions, primarily Lo

MT5 Trading robot SMC / ICT / price actionIndicator crossoverTrend following
Updated 11 months ago None stated GitHub repository of ICT Gold EA

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