Trading robot ยท MT5

XAUUSD MTF Scalper AI Mode

by umarhusain075-hub

This MetaTrader 5 expert advisor is a multi-timeframe scalping robot optimized for gold trading.

GitHub stars1
Forks1
Last update2 months ago24 Jul 2026
LicenceNone stated

Overview

XAUUSD MTF Scalper AI Mode utilizes a higher-timeframe bias filter combined with lower-timeframe entry triggers based on a weighted scoring system. The strategy integrates Exponential Moving Averages, ADX for trend strength, Stochastic RSI, and VWAP. Key features include trend-following pyramiding, which allows adding positions during strong moves, and volatility filters using Bollinger Bands and ATR. Risk management includes spread limits and trading session hours, with exits triggered by EMA reversals. The README is minimal, and it supports fixed or margin-based lot sizing.

Details

Author

umarhusain075-hub on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Scalping, Multi-strategy

Markets

Gold

Timeframes

M1-M5, 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 XAUUSD_MTF_Scalper (15).mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpBiasTFENUM_TIMEFRAMESPERIOD_M15Timeframe untuk filter bias (HTF)
InpEntryTFENUM_TIMEFRAMESPERIOD_M1Timeframe untuk entry trigger (LTF)
InpShowDashboardbooltrueTampilkan panel dashboard sinyal di chart
InpShowIndicatorsOnChartbooltruePlot EMA/BB/VWAP di chart utama + ADX/RSI di subwindow
InpDashboardXOffsetint12Jarak dashboard dari tepi kiri chart (px)
InpDashboardYOffsetint20Jarak dashboard dari tepi atas chart (px)
InpEmaFastint5EMA cepat (LTF) - sebelumnya 9
InpEmaSlowint13EMA lambat (LTF) - sebelumnya 21
InpEmaBiasPeriodint34EMA filter tren (HTF) - sebelumnya 50
InpRsiPeriodint7Period RSI dasar utk StochRSI - sebelumnya 9
InpStochLenint7Lookback Stochastic-of-RSI - sebelumnya 9
InpStochOversoldint20Batas oversold
Show all 40 inputs
NameTypeDefaultDescription
InpStochOverboughtint80Batas overbought
InpAtrPeriodint10Period ATR - sebelumnya 14, sedikit lebih responsif
InpMinAtrPipsdouble15.0ATR minimum (poin) - diturunkan dari 30 agar lebih banyak bar lolos filter volatilitas
InpBBPeriodint20Period Bollinger Band
InpBBDeviationdouble2.0Deviasi BB
InpMinBBWidthPctdouble0.03Lebar BB minimum (%) - diturunkan dari 0.08, filter sideways lebih longgar
InpUseSpreadFilterbooltrueAktifkan filter spread
InpMaxSpreadUSDdouble0.50Spread maksimum dalam USD
InpLogSpreadDebugboolfalseCetak spread aktual ke Journal
InpUseSessionFilterboolfalseAktifkan filter jam trading
InpSessionStartHourint8Jam mulai trading (waktu server broker)
InpSessionEndHourint21Jam akhir trading (waktu server broker)
InpLotModeENUM_LOT_MODELOT_MODE_RISK_PERCENTMode penentuan lot
InpFixedLotdouble0.01Lot tetap (jika mode = Fixed)
InpFullMarginUsagePercentdouble70.0% free margin yang dipakai (mode Full margin)
InpMaxConcurrentPositionsint1Maksimal posisi bersamaan (jika pyramiding OFF)
InpEnablePyramidingbooltrueTerus nambah posisi searah tren selama tren masih valid
InpMinFreeMarginBufferdouble15.0Berhenti nambah jika free margin < X% dari equity
InpMaxPyramidPositionsint20Hard cap jumlah posisi saat pyramiding - dinaikkan dari 10 agar bisa nambah lebih sering
InpPyramidMinBarsBetweenint1Jarak minimum (dlm bar LTF) antar penambahan posisi - diturunkan dari 3 agar lebih sering nambah
InpPyramidMinAtrMovedouble0.2Harga hrs bergerak min X * ATR searah tren sejak entry terakhir - diturunkan dari 0.5
InpAdxPeriodint10Period ADX (diturunkan agar responsif)
InpAdxMinForEntrydouble16.0(Legacy/referensi) - skala atas ADX utk skor sekarang pakai InpAdxSuperStrong
InpAdxWeakenLeveldouble8.0Ambang longgar utk hold pyramid
InpAdxScoreFloordouble8.0ADX di bawah ini kontribusi skor ADX = 0 (dianggap tanpa arah)
InpAdxSuperStrongdouble35.0Skala ATAS skor ADX - ADX >= ini dpt skor ADX PENUH (25/25)
InpMinEntryScoredouble60.0Skor minimum utk ENTRY AWAL (skala 0-100). EMA 25 + ADX 25 + StochRSI 30 + VWAP 20
InpMinPyramidScoredouble50.0Skor minimum utk ENTRY TAMBAHAN/pyramid - lbh rendah krn tren sdh tervalidasi oleh posisi berjalan

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone umarhusain075-hub/XAUUSD-MTF-Scalper-AI-Mode 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

2 stars

This MetaTrader 5 expert advisor is a multi-timeframe scalping robot designed for the forex market. It utilizes a Currency Strength Meter (CSM) combined with a technical indicator suite including RSI, MACD, and ADX to identify entry signals across various periods from M1 to H4. The system incorporates comprehensive ris

MT5 Trading robot ScalpingTrend followingMulti-strategy
Updated 1 year ago None stated GitHub repository of Sophisticated Scalping EA

Scalp Gold EA

by wechuck
1 stars

Scalp Gold EA is a MetaTrader 5 robot primarily optimized for XAUUSD and major forex pairs. It employs a multi-tiered entry system that selects risk levels based on setup confluence and H4 trend alignment via moving averages. Entries are further filtered by ADX momentum and volatility checks. The EA manages risk with a

MT5 Trading robot Trend followingScalpingMulti-strategy
Updated 4 months ago None stated GitHub repository of Scalp Gold EA

EA31337

by EA31337
1.3k stars

EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat

MT5 Trading robot Multi-strategyNewsTrend following
Updated 5 months ago GPL-3.0 GitHub repository of EA31337

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

EA Scalper XAUUSD

by francomascareloai
237 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

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

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