Trading robot · MT5

Black XAU Automated Bot

by phatnomenal

Black XAU is an automated trading robot for MetaTrader 5, specifically designed for gold.

GitHub stars48
Forks24
Last update11 months ago12 Oct 2025
LicenceNone stated

Overview

Black XAU Automated Bot utilizes a multi-timeframe breakout and retest strategy, identifying trading zones based on initial H4 market structure. Entries are triggered on the M5 timeframe when price retests a confirmed breakout level. The expert advisor includes comprehensive risk management tools such as ATR-based position sizing, trailing stops, and a break-even function. To filter market noise, it employs a dual EMA filter and a session filter covering London and New York hours. An integrated news filter uses the built-in calendar to pause trading during high-impact USD events.

Details

Author

phatnomenal on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Trend following

Markets

Gold

Timeframes

M15-H1

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.

EA files

Topics

goldmql5bottrading-algorithms

Input parameters

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

NameTypeDefaultDescription
Lotsdouble0.1
MaxWaitSecondsint24*60*60
UseRiskPercentboolfalse
RiskPercentdouble1.0
Slippageint10
OnlyOnePositionbooltrue
TradeCommentstringH4ZoneRetest
UseNewsFilterbooltrue
NewsFilterMinutesint30
NewsFilterCurrencystringUSD
UseTrailingStopbooltrue
TrailingModeint00=fixed, 1=ATR
Show all 38 inputs
NameTypeDefaultDescription
TrailingStartdouble200.0
TrailingStepdouble100.0
ATR_Trail_Periodint14
ATR_Trail_TimeframeENUM_TIMEFRAMESPERIOD_M15
ATR_Trail_Multdouble1.5
BE_MovePointsdouble300.0
MagicNumberint202503
MaxSpreadPointsdouble50.0
NormalizePricesOutbooltrue
UseSessionFilterbooltrueBật/tắt lọc theo phiên
SessionStartHourint7Giờ bắt đầu (London)
SessionEndHourint22Giờ kết thúc (NY)
ShortLotMultiplierdouble0.5multiplier cho short orders
ZoneModeint00 = Daily HL prev, 1 = first N H4 bars
ZoneFirstH4Countint4
BreakoutBodyPctdouble50.0
BreakoutMinPointsdouble200.0
UseEMAFilterbooltrue
EMA_Fastint50
EMA_Slowint200
EMA_TimeframeENUM_TIMEFRAMESPERIOD_H1
UseATRSizingbooltrue
ATR_Periodint14
ATR_TimeframeENUM_TIMEFRAMESPERIOD_H1
ATR_SL_Multdouble1.5
ATR_TP_Multdouble3.0

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone phatnomenal/blackXAU_AUTOMATED-BOT-TRADE 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 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

Golden Strategist EA

by raracraz
68 stars

This MetaTrader 5 expert advisor specializes in trading Gold (XAUUSD) by targeting volatility during the New York session. It utilizes an Average True Range (ATR) indicator to identify market trends and determine entry levels for limit orders. Risk management includes fixed stop loss parameters and dynamic trailing sto

MT5 Trading robot Trend followingBreakout
Updated 2 years ago None stated GitHub repository of Golden Strategist EA

Box Breakout EA

by je-zhou
26 stars

This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R

MT4MT5 Trading robot BreakoutTrend following

Binario

by EarnForex
20 stars

Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista

MT4MT5 Trading robot BreakoutTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Binario

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

Fimathe EA

by yolisses
12 stars

Fimathe EA is a MetaTrader 5 robot designed to automate the Fimathe trading technique. It replaces manual channel drawing by analyzing a user-defined range of historical candles to determine reference channels and neutral zones. The system identifies price partitions and uses the median distance to set entry levels. Fo

MT5 Trading robot BreakoutTrend followingSMC / ICT / price action
Updated 5 years ago None stated GitHub repository of Fimathe 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