Trading robot · MT5

XAU Confluence EA

by sapsyhere01-max

XAU Confluence EA is an automated trading robot for MetaTrader 5, specifically tailored for the gold market.

GitHub stars1
Forks0
Last update2 months ago26 Jun 2026
LicenceNone stated

Overview

The system executes trades based on a triple-confluence strategy that integrates an exponential moving average ribbon for trend direction, Donchian Channel breakouts with volume confirmation, and a proxy-CVD indicator for order-flow analysis. Risk is managed through fixed dollar-based sizing per trade and a maximum daily loss limit. It features volatility-adjusted stop losses using ATR, reward-to-risk based take profits, and partial closing at break-even. The repository lacks a README file, with instructions contained in the code header.

Details

Author

sapsyhere01-max on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Breakout, Indicator crossover

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.

Input parameters

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

NameTypeDefaultDescription
RiskDollarsdouble50.0Risk per trade in dollars
MaxDailyLossDollarsdouble200.0Max daily loss in dollars before bot stops for the day
DailyLossTypeENUM_DAILY_LOSS_TYPEDAILY_LOSS_GROSSDaily loss calculation: Gross or Net
RR2double1.5Take-profit as a multiple of risk (R)
BEatRRdouble1.0Break-even trigger: RR multiple price must reach (0 = disabled)
PartialClosePctdouble50.0% of position to close when break-even triggers (0 = no partial close)
MaxSLPipsdouble500.0Skip trade if SL distance exceeds this many pips
ATRperiodint14ATR lookback (volatility) for the stop
ATRmultSLdouble1.2Stop distance = this x ATR (lower = tighter)
EMAfastint21Fast EMA period
EMAslowint50Slow EMA period
UseSlopebooltrueAlso require the fast EMA to be moving our way
Show all 27 inputs
NameTypeDefaultDescription
BreakLookbackint20Bars used for the breakout high/low level
UseVolFilterbooltrueRequire the breakout bar to have above-average volume
VolAvgPeriodint20Bars used for the volume average
VolMultdouble1.2Breakout volume must exceed average x this
UseCVDbooltrueRequire order-flow (proxy-CVD) to agree with direction
CVDlookbackint14Bars summed for the proxy-CVD window
CVDrisingbooltrueAlso require CVD to be building (not just the right sign)
MaxOpenTradesint1max running trades on this symbol
CloseOnDirectionFlipbooltrueClose opposite-direction trades before opening a new one
MaxTradeDurationHoursdouble10.0Close profitable trades open >= this many hours (0 = disabled)
BlockIST_3to5booltrueblock trading from 03:00-05:00 IST (toggle)
BlockUSDNewsbooltrueblock trading around USD news times (toggle)
USDNewsTimesstringPaste USD news datetimes in SERVER TIME, separated by semicolons
MaxSpreadPointsint50Skip new entries when spread exceeds this many points (0 = disabled)
EnableLoggingbooltrueLog closed trades to Experts tab + CSV file

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone sapsyhere01-max/XAU-Ea-Mt5 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

3 stars

This MetaTrader 5 expert advisor executes trades based on the Ichimoku Kinko Hyo system, specifically targeting cloud breakouts. It incorporates several technical filters including Average True Range for volatility and Average Directional Index for trend strength to refine entries. Risk management is handled through pe

MT5 Trading robot Trend followingBreakoutIndicator crossover
Updated 3 years ago None stated GitHub repository of Ichimoku Cloud Breakout AR
2 stars

This MetaTrader 5 expert advisor combines Bollinger Band mean-reversion, squeeze breakouts, and EMA crossover trend following. It filters for ranging markets using a long-period EMA slope to execute reversal trades with candlestick confirmation, specifically identifying Doji patterns at the bands. Risk management inclu

MT5 Trading robot Mean reversionBreakoutIndicator crossover
2 stars

This MetaTrader 5 expert advisor focuses on the EURUSD pair using an adaptive market regime approach. It alternates between trend-following and mean-reversion logic based on ADX and EMA indicators. The trend strategy utilizes price breakouts or pullbacks confirmed by RSI, while the range strategy employs Bollinger Band

MT5 Trading robot Trend followingBreakoutMean reversion

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

GBPJPY Trader

by AidanB21
1 stars

This automated expert advisor for MetaTrader 5 is specifically designed for the GBPJPY currency pair. It utilizes a breakout strategy based on psychological key price levels, which are adjustable in the settings. The bot filters entries using two Simple Moving Averages and the Average Directional Index to confirm trend

MT5 Trading robot BreakoutTrend followingIndicator crossover
Updated 2 years ago None stated GitHub repository of GBPJPY Trader
1 stars

This MetaTrader 5 expert advisor executes a trend-following strategy based on Donchian Channel breakouts and MACD filters across multiple timeframes. It utilizes a higher timeframe for trend direction while identifying entry opportunities on lower timeframes. The robot includes a trend memory mode designed to manage en

MT5 Trading robot BreakoutTrend followingIndicator crossover
Updated 4 months ago None stated GitHub repository of Donchian MACD Breakout 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