Trading robot ยท MT5

Xau Range Scalper Pro

by amolrasal2004-ctrl

A MetaTrader 5 expert advisor designed for range-based reversal trading, primarily optimized for XAUUSD on the M5 timeframe.

GitHub stars1
Forks0
Last update3 months ago30 May 2026
LicenceNone stated

Overview

Xau Range Scalper Pro identifies sideways markets by monitoring price touches at support and resistance levels over a defined lookback period. The robot filters entries using RSI, ADX, and candle patterns such as engulfing bars to avoid breakouts. It features comprehensive risk controls including ATR-based stop losses, fixed risk-per-trade lot sizing, a daily drawdown limit, and automated trade management via trailing stops and break-even triggers.

Details

Author

amolrasal2004-ctrl on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, 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.

Input parameters

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

NameTypeDefaultDescription
InpMagiculong20260525
InpTradeCommentstringXAU_RSP
InpAllowTradingOnlyXAUbooltrue
InpDrawObjectsbooltrue
InpShowDashboardbooltrue
InpPushAlertsboolfalse
InpLogFileNamestringXAU_RSP_log.txt
InpRiskPercentdouble1.0
InpMaxDailyLossPercentdouble3.0
InpMaxOpenTradesint1
InpRangeLookbackint50
InpMinTouchesPerSideint2loosened
Show all 40 inputs
NameTypeDefaultDescription
InpMinTouchSpacingint3loosened
InpTouchTolerancePointsdouble250a bit wider
InpAtrMaxRatiodouble0.45loosened
InpBreakoutCooldownBarsint20
InpUseHtfFilterboolfalseOFF by default
InpHtfPeriodENUM_TIMEFRAMESPERIOD_M15
InpAtrPeriodint14
InpAdxPeriodint14
InpAdxMaxdouble30.0loosened (was 22)
InpRsiPeriodint14
InpRsiBuyMaxdouble38.0loosened
InpRsiSellMindouble62.0loosened
InpUseBollingerboolfalse
InpBbPeriodint20
InpBbDeviationdouble2.0
InpUseTrendFilterboolfalseOFF by default
InpEmaPeriodint200
InpEmaMaxDistAtrdouble5.0
InpSlAtrMultiplierdouble1.5
InpTpRRMultiplierdouble1.8
InpTpAtRangeOppositebooltrue
InpUseBreakEvenbooltrue
InpBreakEvenTriggerPtsdouble600
InpBreakEvenLockPtsdouble50
InpUseTrailingbooltrue
InpTrailStartPointsdouble1000
InpTrailStepPointsdouble500
InpSpreadLimitPointsint50

How to install it

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

Scalpflip EA

by anthonycdp
25 stars

Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index

MT5 Trading robot ScalpingTrend followingMean reversion
Updated 1 year ago None stated GitHub repository of Scalpflip EA

FG Scalping Pro

by FaizGusion00
11 stars

FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take

MT5 Trading robot ScalpingIndicator crossoverMean reversion
Updated 1 year ago Custom licence GitHub repository of FG Scalping Pro
10 stars

Advanced Multi Currency Scalper is a MetaTrader 5 robot designed to monitor and trade multiple forex pairs simultaneously from a single instance. The strategy is based on Bollinger Bands, using period and deviation settings to identify potential entry points. Each currency pair is managed independently with its own set

MT5 Trading robot ScalpingMean reversion
9 stars

This MetaTrader 5 expert advisor collection provides multiple variants for scalping gold on the one-minute timeframe. It utilizes a combination of Stochastic Oscillator crossovers and linear regression analysis to identify trend quality and entry points. Trade management is handled through ATR-based dynamic stop loss a

MT5 Trading robot ScalpingTrend followingMean reversion
8 stars

High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s

MT5 Trading robot GridMean reversionScalping High risk

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

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