Trading robot · MT5

XAU5M High Risk Timer

by Ertoba

XAU5M High Risk Timer is an aggressive MetaTrader 5 expert advisor designed for demo and stress testing on XAUUSD M5 charts.

GitHub stars1
Forks0
Last update4 months ago29 Jun 2026
LicenceNone stated

Overview

Every five minutes, it opens a fixed 0.10 lot position using a momentum and trend score based on EMA 20/50, RSI 14, MACD, and previous candle breakouts. Positions exit through ATR-based stop loss and take profit levels, break-even adjustments, an ATR trailing stop, a 25-minute maximum hold timer, or by closing the oldest trade when five positions are already open. Built-in guards restrict execution to demo accounts and XAUUSD, though the spread filter is disabled by default.

Details

Author

Ertoba on GitHub

Type

Trading robot

Markets

Gold

Timeframes

M1-M5

Risk Profile

  • Holds opposite positions at once

Input Parameters

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

NameTypeDefaultDescription
RequireDemoAccountbooltrue
AllowedSymbolstringXAUUSD
AllowBrokerSuffixbooltrue
MagicNumberulong2026062905
TradeCommentstringXAU5M_TIMER
EntryTimeframeENUM_TIMEFRAMESPERIOD_M5
TimerSecondsint10
OpenEveryMinutesint5
MaxOpenPositionsint5
Lotsdouble0.10
SlippagePointsint30
CloseOldestWhenFullbooltrue
Show all 38 inputs
NameTypeDefaultDescription
RetryWithinSameSlotOnFailurebooltrue
LogSkipReasonsbooltrue
SkipLogSecondsint60
EMAFastPeriodint20
EMASlowPeriodint50
RSIPeriodint14
MACDFastint12
MACDSlowint26
MACDSignalint9
ATRPeriodint14
RSIUpperBiasdouble55.0
RSILowerBiasdouble45.0
UseSpreadFilterboolfalse
MaxSpreadPointsdouble300.0
ATRStopMultiplierdouble1.00
ATRTakeProfitMultiplierdouble1.20
MinStopPointsint250
MaxStopPointsint1800
CloseOppositePositionsboolfalse
MaxHoldMinutesint25
UseBreakEvenbooltrue
BreakEvenAtRdouble0.80
BreakEvenBufferPointsint30
UseTrailingStopbooltrue
TrailStartRdouble1.00
TrailATRMultiplierdouble0.80

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Ertoba/xau5m 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
214 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 weeks ago BSD-3-Clause GitHub repository of Nyao Scalper

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 1 year ago None stated GitHub repository of Experienced FX Trader

The Gold Reaper

by naming1086
1 stars

The Gold Reaper is a multi-strategy expert advisor for MetaTrader 4 and 5. It trades gold pairs using breakout and reversal entries based on fractals and ATR. Trades enter when spread and frequency conditions are met and exit via trailing stops or time-based rules. The EA includes NFP filters to pause during economic e

MT4MT5 Trading robot BreakoutTrend followingScalping High risk
Updated 2 months ago None stated GitHub repository of The Gold Reaper

Prop Firm EA Fleet

by cgemise971
26 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 11 months ago None stated GitHub repository of Prop Firm EA Fleet

Prem Gold Advisor

by Premkumar238
13 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 3 months ago None stated GitHub repository of Prem Gold Advisor
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

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