Trading robot · MT5

XAUUSD M1 Scalper

by rizkydn-personal

XAUUSD M1 Scalper is a MetaTrader 5 robot that trades gold on the M1 timeframe.

GitHub stars1
Forks0
Last update2 months ago10 Aug 2026
LicenceNone stated

Overview

XAUUSD M1 Scalper identifies breakout signals on range bars and filters them with a fast EMA trend on M15. The EA opens three legs per signal with TP1 TP2 and TP3 distances set by risk percent and ATR multipliers. It exits trades at partial TP levels or closes opposite direction positions on new signals. Risk controls include ATR based stop loss with spread and noise buffers, daily loss limit of 10 percent, maximum six open positions, and max spread checks. Lot size is limited to 5.0. The README provides minimal setup details for MT5 and dashboard integration.

Details

Author

rizkydn-personal on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Scalping, Breakout, Trend following

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 XAUUSD_scalper_M1.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpMagicNumberlong990022
InpTradeCommentstringXAU-M1-MTP
InpTrendTFENUM_TIMEFRAMESPERIOD_M15trend filter lebih cepat mengikuti entry M1
InpEntryTFENUM_TIMEFRAMESPERIOD_M1
InpDeviationPointsint30toleransi slippage market execution
InpTrendEmaFastint50
InpTrendEmaSlowint200
InpRangeBarsint8diperpendek dari 12 -> lebih sering breakout valid
InpBreakoutBufferPtsdouble10diperkecil dari 20 -> ambang tembus lebih mudah
InpMinBodyATRdouble0.20diperkecil dari 0.30 -> body candle lolos lebih mudah
InpRequireCloseNearExtremebooltrue
InpCloseExtremePercentdouble35.0dilonggarkan dari 25 -> toleransi close lebih besar
Show all 40 inputs
NameTypeDefaultDescription
InpAtrPeriodint14
InpAtrBaselineBarsint150median ATR dari N bar terakhir sbg baseline
InpAtrMinMultiplierdouble0.40dilonggarkan dari 0.50
InpAtrMaxMultiplierdouble3.00dilonggarkan dari 2.50
InpMaxSpreadATRPercentdouble30.0spread maks = sekian % dari ATR skrg
InpMaxSpreadPointsHardCapdouble600hard cap absolut, jaring pengaman kedua
InpRiskPercentdouble0.50risiko total per sinyal (dibagi ke 3 leg)
InpAtrSLMultiplierdouble1.10SL lebih rapat drpd versi M5 (sesuai skala M1)
InpMaxDailyLossPercentdouble10.0batas rugi harian (%) sebelum EA berhenti trading
InpMaxLotSizedouble5.0
InpMaxDailyProfitPercentdouble0.0target profit harian (%) (0 = nonaktif)
InpMaxTradesPerDayint0batas jumlah sinyal/trade per hari saat mode Default (0 = tanpa batas)
InpMaxOpenPositionsint6HARD CAP jumlah posisi aktif (semua leg TP1/2/3 dihitung) - sinyal baru ditahan kalau tercapai
InpSLNoiseBufferATRdouble0.35buffer tambahan (x ATR) di atas SL dasar, meredam wick/noise M1
InpSLSpreadBufferMultdouble1.5buffer tambahan = spread saat ini x nilai ini, ditambah ke SL
InpDecoupleTPFromSLbooltruetrue = TP dihitung dari SL DASAR (sebelum buffer), SL boleh lebih lebar tanpa TP ikut menjauh
InpEnableBreakEvenbooltruepindahkan SL ke breakeven+buffer setelah profit floating cukup
InpBreakEvenTriggerRRdouble1.0ambang trigger breakeven, dalam kelipatan SL DASAR (bukan SL lebar aktual).
InpBreakEvenBufferPointsdouble100SL breakeven digeser sejauh ini (poin) dari harga entry, searah profit
InpBreakEvenSpreadBufferMultdouble3.0buffer breakeven = spread SAAT itu x nilai ini (dibuat lebih besar dari
InpTP1_RRdouble0.8TP cepat, kunci profit awal
InpTP2_RRdouble1.3
InpTP3_RRdouble2.2TP jauh, biar lari kalau momentum kuat
InpTP1VolumePercentdouble40.0total 3 leg harus = 100
InpTP2VolumePercentdouble35.0
InpTP3VolumePercentdouble25.0
InpEnableSRReversalbooltrueaktifkan mode reversal di S/R (agar SELL bisa terjadi walau EMA trend naik)
InpSRTFENUM_TIMEFRAMESPERIOD_M15timeframe pencarian swing high/low utk S/R

How to Install It

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

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 4 months ago BSD-3-Clause GitHub repository of Nyao Scalper

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
5 stars

Universal Market Hunter is an automated trading robot for MetaTrader 5 that targets Forex, gold, and cryptocurrency markets. It allows users to switch between two main strategies: a Bollinger Band volatility breakout and an engulfing price action pattern using volume confirmation. The system manages risk through ATR-ca

MT5 Trading robot BreakoutScalpingTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Universal Market Hunter

Atlas EA

by ymk5py-commits
2 stars

Atlas EA is a multi-strategy intraday trading robot for MetaTrader 5, primarily focused on gold, silver, and USDJPY. It identifies market structure shifts using Smart Money Concepts, specifically targeting breaks of structure and fair value gaps during the London and New York sessions. The EA includes optional modules

MT5 Trading robot SMC / ICT / price actionTrend followingBreakout
Updated 5 weeks ago None stated GitHub repository of Atlas 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 11 months ago None stated GitHub repository of Experienced FX Trader

Scalping EA

by DeathG7n
1 stars

This expert advisor for MetaTrader 5 implements a scalping strategy using a combination of trend and momentum indicators. It determines trend direction via three Smoothed Moving Averages (21, 50, and 200 periods) and uses the Relative Strength Index (RSI) as a filter. Entries are triggered by price breakouts of Fractal

MT5 Trading robot Trend followingScalpingBreakout
Updated 3 years ago None stated GitHub repository of Scalping 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