Trading robot · MT5

Supertrend XAU SmartScalper

by alexeltranca-coder

Supertrend XAU SmartScalper is a MetaTrader 5 expert advisor designed specifically for trading Gold.

GitHub stars1
Forks0
Last update7 months ago24 Feb 2026
LicenceNone stated

Overview

The EA employs a multi-timeframe triple SuperTrend setup on M15 context and M1 entry charts. It features structured trade management including partial closes, break-even adjustments, and a trailing stop loss. Risk is controlled through structural stop losses, relative spread filters, ATR-based volatility filters, and maximum entry distance controls to prevent chasing spikes. The system also supports trading sessions, news filtering, and daily profit/loss protection, though the repository README is minimal.

Details

Author

alexeltranca-coder on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Scalping

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

NameTypeDefaultDescription
TF_ContextENUM_TIMEFRAMESPERIOD_M15
TF_EntryENUM_TIMEFRAMESPERIOD_M1
UseSuperTrendFunctionbooltrue
Inp_Debugboolfalse
Inp_DebugEverySecint60
Min_SL_Pointsdouble280.0era 320
Max_SL_Pointsdouble3800.0era 4200
ST_SourcePriceENUM_APPLIED_PRICEPRICE_MEDIAN
ST_TakeWicksIntoAccountbooltrue
ST1_ATRPeriodint34era 36
ST1_Multiplierdouble3.20era 3.35
ST2_ATRPeriodint22era 24
Show all 40 inputs
NameTypeDefaultDescription
ST2_Multiplierdouble2.55era 2.65
ST3_ATRPeriodint11era 12
ST3_Multiplierdouble1.85era 1.90
ST_TP1_Ratiodouble1.10era 1.00 (break-even killer)
ST_TP2_RRdouble2.20era 2.00
ST_SL_BufferPtsdouble18.0era 20
ST_MinTP1_SpreadMultdouble1.15era 1.05
ST_MinTP1_ATRFracdouble0.018era 0.02
ST_MinTP1_AbsPtsdouble22.0era 25
ST_Magiclong77223318
ST_CommentTagstringSuperTrend
ST_DeviationPointsint120era 140 (reduce fake distance blocks)
ST_UseEntryDistanceFilterbooltrue
ST_MaxEntryDist_ATRdouble2.60era 3.00
ST_MaxEntryDist_MinPointsdouble260.0era 320
ST_BiasPersistBarsint2
ST_AllowMajorityBiasbooltrue
ST_RequireST3Flipboolfalse
UseRelativeSpreadFilterbooltrue
Spread_ATR_Fracdouble0.52era 0.58
SpreadRel_MinAllowedPtsint40era 45
Max_Spread_Pointsint220era 240
ST_UseATRContextFilterbooltrue
ST_Min_ATR_Points_Ctxdouble120.0era 140
ST_Max_ATR_Points_Ctxdouble6500.0era 7200
Lotsdouble0.01
UseTradingSessionsbooltrue
UseNewsFilterbooltrue

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone alexeltranca-coder/supertrendXAU 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

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
42 stars

This Expert Advisor for MetaTrader 5 is specifically designed for XAUUSD trading on the M1 timeframe. It utilizes a hybrid strategy combining classic technical indicators like RSI, Moving Averages, and ATR with an OpenAI API integration for signal validation. The robot features an on-chart dashboard for telemetry and i

MT5 Trading robot ScalpingTrend followingAI / machine learning
Updated 5 months ago None stated GitHub repository of Gold EA MT5 With OpenAI

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

Prop Firm EA Fleet

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

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

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