Trading robot · MT5

GoldBarrier

by jalolk

GoldBarrier is an MT5 EA that trades XAUUSD gold using barrier strategies with fixed-percentage take profit and stop loss.

GitHub stars1
Forks0
Last update2 months ago15 Jul 2026
LicenceMIT

Overview

GoldBarrier supports multiple entry modes including breakout and naive controls on M30 timeframes while applying filters for ATR, regime, and trading sessions. Risk controls include max spread, cooldown, daily loss limit, max positions, and fake tick detection that refuses to run on modeled data. It provides statistical verdicts on backtests and benchmarks against buy-and-hold.

Details

Author

jalolk on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Scalping, Mean reversion

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

NameTypeDefaultDescription
InpTPPercentdouble0.90Take Profit (% of entry)
InpSLPercentdouble1.00Stop Loss (% of entry)
InpEntryModeENUM_ENTRY_MODEENTRY_NAIVE
InpEntryTFENUM_TIMEFRAMESPERIOD_M30
InpPullbackEMAint20
InpDonchianBarsint20
InpRSIPeriodint14
InpRSIBuyLeveldouble45.0
InpRSISellLeveldouble55.0
InpUseRegimeboolfalse
InpRegimeTFENUM_TIMEFRAMESPERIOD_H1
InpRegimeFastEMAint50
Show all 37 inputs
NameTypeDefaultDescription
InpRegimeSlowEMAint200
InpUseATRFilterboolfalse
InpATRPeriodint14
InpMinATRToTargetdouble3.0
InpMaxATRToTargetdouble20.0
InpUseADXboolfalse
InpADXPeriodint14
InpADXMindouble20.0
InpUseSessionboolfalse
InpSessionStartHourint8
InpSessionEndHourint20
InpSizingModeENUM_SIZINGSIZE_FIXED
InpFixedLotsdouble0.01
InpRiskPercentdouble0.5
InpMaxSpreadPctdouble0.030Max spread % of price (0=off)
InpMaxOpenPositionsint1
InpCooldownBarsint0
InpMaxDailyLossPctdouble00=off
InpMaxBarsInTradeint0Force-close after N bars (0=off)
InpTickDensityCheckbooltrueDetect fake tick models
InpMinTicksPerBardouble50.0Below this = OHLC modelling
InpAbortOnFakeTicksboolfalsetrue = refuse to run at all
InpMagiculong880200
InpSlippagePointsint30
InpVerboseboolfalse

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone jalolk/xauusd-forex-casino 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

High Frequency Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri

MT5 Trading robot ScalpingBreakoutMean reversion
4 stars

Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press

MT5 Trading robot ScalpingBreakoutMean reversion
Updated 4 months ago Custom licence GitHub repository of Gold SnR Momentum Scalper Pro

Gold Dual Engine Scalper

by MithunCyDev
1 stars

Gold Dual Engine Scalper is an MT5 expert advisor designed for XAUUSD trading. It utilizes a regime-based state machine to navigate market conditions, employing two distinct engines: one for volatility burst continuations and another for liquidity sweep reversals. The EA monitors for price compression and market exhaus

MT5 Trading robot ScalpingBreakoutSMC / ICT / price action

UltraHFT Expert Advisor

by NipunDilshanSenevirathne
1 stars

UltraHFT Expert Advisor is a high-frequency scalping robot for MetaTrader 5 that combines five strategy layers including EMA crossovers, RSI mean reversion, and volatility breakouts. It evaluates market conditions on every tick, entering trades when multiple signals align. The system employs strict risk controls with h

MT5 Trading robot ScalpingMean reversionTrend following High risk

Baby MT4 EA

by dolie
2 stars

This MetaTrader 4 expert advisor utilizes the SuperTrend and Bollinger Bands indicators to identify market entries. It monitors for trend changes, breakouts, corrections, and pullbacks. The EA incorporates several risk management tools, including a configurable stop loss, dynamic stop loss logic, and a trailing stop. I

MT4 Trading robot Trend followingBreakoutScalping High risk
Updated 9 years ago None stated GitHub repository of Baby MT4 EA

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

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