Trading robot · MT5

XAUScalper

by allanorabaasa-hash

XAUScalper is a MetaTrader 5 expert advisor designed for gold and Bitcoin that trades M1 market structure without technical indicators.

GitHub stars1
Forks0
Last update10 days ago14 Nov 2026
LicenceNone stated

Overview

XAUScalper identifies market structure shifts, swing points, and price breakouts, entering trades confirmed by short-term real tick flow momentum. Orders are placed in asynchronous multi-position batches that scale up in size following winning trades. Features include dynamic stop loss and take profit targets based on market structure, automated breakeven trailing, high-impact USD news range breakout logic, an emergency margin level equity guard, and an on-chart control panel.

Details

Author

allanorabaasa-hash on GitHub

Type

Trading robot

Markets

Gold, Crypto

Timeframes

M1-M5

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

NameTypeDefaultDescription
InpStructureTFENUM_TIMEFRAMESPERIOD_M1Structure timeframe (everything is read on this chart)
InpSwingBarsint3Swing point = higher/lower than this many candles each side
InpFreshBarsint3A break / shift this many candles old or newer is still tradable
InpMaxChaseRdouble0.5Fresh break: skip if price already ran more than this x the stop past the level
InpRewardRdouble2.0Take profit at this many times the stop distance
InpBreakevenRdouble1.0Move the stop to entry after this many R in profit (0 = off)
InpMinStopPctdouble0.03Skip if the stop is closer than this % of price (gold ~$1.2)
InpMaxStopPctdouble0.40Gold: skip if the stop is further than this % of price (~$16)
InpMaxStopPctBtcdouble0.80Bitcoin: skip if the stop is further than this % of price (~$540)
InpMaxSpreadOfStopdouble25Skip if the spread is more than this % of the stop distance
InpTickConfirmbooltrueEnter only when the real ticks push in the trade's direction
InpTickWindowSecint15Look at the ticks of the last N seconds
Show all 31 inputs
NameTypeDefaultDescription
InpTickMinRatiodouble60At least this % of price-changing ticks in the trade's direction
InpLotdouble0.01Lot per position (fixed)
InpBatchStartint5Positions in the first batch (and after a losing batch)
InpBatchStepint5Add this many positions after a winning batch
InpBatchMaxint20Never more than this many positions in one batch
InpMaxBatchRiskPctdouble15Batch stop-loss risk at most this % of balance (fewer positions if needed; 0 = off)
InpNewsbooltrueReact to high-impact USD news
InpNewsBeforeMinint15Before the release: no new entries, winners to breakeven
InpNewsRangeMinint15Breakout range = high/low of the last N minutes before release
InpNewsAfterMinint30After the release: trade a breakout of that range for N minutes
InpEmergencyMarginLeveldouble100Emergency: close all below this margin level % (0 = off)
InpAllowRealboolfalseAllow trading on a REAL account
InpAutoStartbooltrueStart/resume automatically whenever connected (STOP is remembered)
InpMagiclong20261114Magic number (unique per EA)
InpTradeCommentstringScalperOrder comment
InpSlippagePointsint30Max slippage (points)
InpJournalbooltrueTrade journal (Common/Files/XAUScalper_trades.csv)
InpPanelXint10Panel X offset
InpPanelYint30Panel Y offset

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone allanorabaasa-hash/scalper 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, and any .mqh files into the Include folder the code expects.
  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

Prop Firm EA Fleet

by cgemise971
26 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 11 months ago None stated GitHub repository of Prop Firm EA Fleet

OrderBlock ICT

by cfournel
4 stars

This MetaTrader 5 expert advisor implements Inner Circle Trader concepts, specifically focusing on Order Blocks and PD Arrays for trade entries. The robot identifies price action structures including breakouts, range-based patterns, and Fibonacci extensions. For risk management, it utilizes ATR-based stop losses, trail

MT5 Trading robot SMC / ICT / price actionBreakoutNews
Updated 5 months ago None stated GitHub repository of OrderBlock ICT

Liquidity Scalper

by torOxO
2 stars

Liquidity Scalper is an automated expert advisor for XAUUSD (Gold) on MetaTrader 4 and 5. It executes trades based on institutional order flow and Smart Money Concepts, specifically targeting liquidity sweeps followed by market displacement. The system identifies order blocks and enters on either retests or momentum-ba

MT4MT5 Trading robot SMC / ICT / price actionScalpingBreakout
Updated 9 months ago None stated GitHub repository of Liquidity Scalper

This MetaTrader 5 expert advisor is a multi-layered trading system specifically designed for BTCUSD. It utilizes a hierarchical decision logic that analyzes macro bias on the H4 timeframe, maps support and resistance on the H1 timeframe, and confirms structure changes on M15 before executing trades on the M5 timeframe.

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following

Atlas EA

by ymk5py-commits
2 stars

Atlas EA is a multi-strategy intraday trading robot for MetaTrader 5, primarily focused on gold, silver, and USDJPY. It identifies market structure shifts using Smart Money Concepts, specifically targeting breaks of structure and fair value gaps during the London and New York sessions. The EA includes optional modules

MT5 Trading robot SMC / ICT / price actionTrend followingBreakout
Updated 2 months ago None stated GitHub repository of Atlas EA

DevyyTrades Webhook EA

by fynnelsner
1 stars

This MetaTrader 5 Expert Advisor functions as a bridge for TradingView alerts, processing signals through a Python-based webhook server. It executes a mechanical strategy involving trend following, Fair Value Gaps, and structural changes like Break of Structure. The EA includes sophisticated risk management such as dyn

MT5 Trading robot Trend followingSMC / ICT / price actionNews
Updated 6 months ago None stated GitHub repository of DevyyTrades Webhook EA

More gold EAs

Related on ForexR

Need a Broker for MT5?

Compare regulated brokers that support MT5, with spreads, minimum deposits and leverage side by side.

Compare MT5 brokers