Trading robot · MT5

BB Gold Scalper

by youngboiiii

This Expert Advisor for MetaTrader 5 implements a mean-reversion strategy focused on XAUUSD (Gold) using the M15 timeframe.

GitHub stars1
Forks2
Last update8 months ago21 Jan 2026
LicenceCustom licence

Overview

BB Gold Scalper identifies entries when the price bounces back inside Bollinger Bands after a touch or breakout. The robot manages trades using a high reward-to-risk ratio, featuring a fixed dollar-based risk per trade or fixed lot sizing. Positions are protected by a hard stop loss and take profit, with additional options for a trailing stop and closing upon reaching the opposite Bollinger Band.

Details

Author

youngboiiii on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, Scalping

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

NameTypeDefaultDescription
MagicNumberlong240121Magic Number für diesen EA
EA_CommentstringBB_Gold_ScalperOrder Comment
TradingSymbolstringXAUUSDTrading Symbol (Gold)
BB_Periodint20BB Periode
BB_Shiftint0BB Shift
BB_Deviationdouble2.0BB Standard Abweichung
BB_AppliedPriceENUM_APPLIED_PRICEPRICE_CLOSEBB Angewandt auf
FixedLotSizedouble0.01Feste Lot-Größe (0 = Auto-Berechnung)
MaxRiskDollardouble10.0Maximales Risiko in Dollar
StopLossPipsint100Stop Loss in Pips (10 Pips = 1 Dollar)
TakeProfitPipsint500Take Profit in Pips (CRV 5:1)
UseTrailingStopbooltrueTrailing Stop aktivieren
Show all 21 inputs
NameTypeDefaultDescription
TrailingStopPipsint100Trailing Stop Distanz in Pips
TrailingStepPipsint50Trailing Step in Pips
CloseOnOppositeBBbooltruePosition bei gegenüberliegendem BB schließen
MaxSpreadPipsint30Maximaler Spread in Pips
OnlyOneTradeAtTimebooltrueNur ein Trade gleichzeitig
TimeframeENUM_TIMEFRAMESPERIOD_M15Trading Timeframe
UseTimeFilterboolfalseZeitfilter aktivieren
StartHourint8Start Stunde (Serverzeit)
EndHourint22End Stunde (Serverzeit)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone youngboiiii/BB-Gold-Scalper-EA 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

Scalpflip EA

by anthonycdp
25 stars

Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index

MT5 Trading robot ScalpingTrend followingMean reversion
Updated 1 year ago None stated GitHub repository of Scalpflip EA

FG Scalping Pro

by FaizGusion00
11 stars

FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take

MT5 Trading robot ScalpingIndicator crossoverMean reversion
Updated 1 year ago Custom licence GitHub repository of FG Scalping Pro
10 stars

Advanced Multi Currency Scalper is a MetaTrader 5 robot designed to monitor and trade multiple forex pairs simultaneously from a single instance. The strategy is based on Bollinger Bands, using period and deviation settings to identify potential entry points. Each currency pair is managed independently with its own set

MT5 Trading robot ScalpingMean reversion
9 stars

This MetaTrader 5 expert advisor collection provides multiple variants for scalping gold on the one-minute timeframe. It utilizes a combination of Stochastic Oscillator crossovers and linear regression analysis to identify trend quality and entry points. Trade management is handled through ATR-based dynamic stop loss a

MT5 Trading robot ScalpingTrend followingMean reversion
8 stars

High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s

MT5 Trading robot GridMean reversionScalping High risk

Simba Sniper EA

by oriokie
6 stars

This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity

MT5 Trading robot SMC / ICT / price actionScalpingTrend following High risk
Updated 8 months ago Custom licence GitHub repository of Simba Sniper 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