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.
Scheduled 5-minute interval trade entries
Multi-indicator momentum and trend scoring
ATR-based stop loss, take profit, and trailing stop
Read from XAU5M_HighRisk_Timer.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
RequireDemoAccount
bool
true
AllowedSymbol
string
XAUUSD
AllowBrokerSuffix
bool
true
MagicNumber
ulong
2026062905
TradeComment
string
XAU5M_TIMER
EntryTimeframe
ENUM_TIMEFRAMES
PERIOD_M5
TimerSeconds
int
10
OpenEveryMinutes
int
5
MaxOpenPositions
int
5
Lots
double
0.10
SlippagePoints
int
30
CloseOldestWhenFull
bool
true
Show all 38 inputs
Name
Type
Default
Description
RetryWithinSameSlotOnFailure
bool
true
LogSkipReasons
bool
true
SkipLogSeconds
int
60
EMAFastPeriod
int
20
EMASlowPeriod
int
50
RSIPeriod
int
14
MACDFast
int
12
MACDSlow
int
26
MACDSignal
int
9
ATRPeriod
int
14
RSIUpperBias
double
55.0
RSILowerBias
double
45.0
UseSpreadFilter
bool
false
MaxSpreadPoints
double
300.0
ATRStopMultiplier
double
1.00
ATRTakeProfitMultiplier
double
1.20
MinStopPoints
int
250
MaxStopPoints
int
1800
CloseOppositePositions
bool
false
MaxHoldMinutes
int
25
UseBreakEven
bool
true
BreakEvenAtR
double
0.80
BreakEvenBufferPoints
int
30
UseTrailingStop
bool
true
TrailStartR
double
1.00
TrailATRMultiplier
double
0.80
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone Ertoba/xau5m from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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