Trading robot · MT5

YANSTD SMC Scalper

by yanstd888

YANSTD SMC Scalper is an automated trading Expert Advisor for MetaTrader 5, designed for gold (XAUUSD) intraday scalping.

GitHub stars26
Forks1
Last update13 days ago25 Oct 2026
LicenceMIT

Overview

YANSTD SMC Scalper implements Smart Money Concepts (SMC) and ICT methodologies alongside Market Structure Support & Resistance (MSNR). The EA performs multi-timeframe analysis across H4 down to M3 charts, identifying liquidity sweeps, Order Blocks, Fair Value Gaps, and Change of Character (CHoCH) setups before executing limit orders. It features non-martingale lot sizing, structural stop losses, dynamic partial take profits, an interactive on-chart HUD dashboard, multi-timeframe trend monitoring, and trading session filters.

Details

Author

yanstd888 on GitHub

Type

Trading robot

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.

Topics

algorithmic-tradingexpert-advisorfair-value-gapgold-tradingmetatrader5mql5order-blockquantitative-financescalping-strategysmart-money-conceptssmctrading-botxauusd

Input Parameters

Read from YANSTD.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpMSNRScanBarsint300M15 Lookback Bars for MSNR Zones
InpMSNROTEFibMindouble0.618OTE Fibo Min Threshold
InpMSNROTEFibMaxdouble0.786OTE Fibo max / deep-entry threshold (classic 0.786)
InpRequireZoneOTEbooltrueStrict OTE: formation and primary gate require 0.618-0.786 location
InpSetupModeENUM_SETUP_MODESETUP_SMC_PRIMARY2=SMC_PRIMARY (MSNR soft overlay); 3=PURE_SMC (no MSNR)
InpKingSNR_PrimaryTFENUM_TIMEFRAMESPERIOD_H4King SNR primary TF (priority / dominant bias)
InpKingSNR_SecondaryTFENUM_TIMEFRAMESPERIOD_H1King SNR secondary/fallback TF (used only if primary has no active zone)
InpKingSNR_LookbackBarsint150King SNR HTF Candle Lookback
InpUseLayer2M15GatebooltrueRequire Layer1 MSNR map x Layer2 SMC OB/FVG M15 overlap
InpMagicNumberulong888999Magic Number
InpSlippageint30Max Slippage (Points)
InpAutoTradingbooltrueAuto Trading Mode (ON/OFF)
Show all 40 inputs
NameTypeDefaultDescription
InpTradeRetryAttemptsint2Fix backlog#3: Extra retry attempts on transient trade errors (0 = disabled)
InpTradeRetryDelayMsint250Fix backlog#3: Delay between retry attempts (ms)
InpEnablePushAlertsboolfalsePush critical live alerts (configure terminal Notifications first)
inp_htf_periodENUM_TIMEFRAMESPERIOD_M15HTF Bias Timeframe
inp_mtf_periodENUM_TIMEFRAMESPERIOD_M5MTF POI Zone Timeframe
inp_ltf_periodENUM_TIMEFRAMESPERIOD_M3LTF Trigger Timeframe
InpUseM5RefinementbooltrueRefine M15 MSNR/SMC zones on M5 before M3 confirmation
InpRequireM5ContainedInM15booltrueStrict contain for V/A/OCL/SBR/RBS only; QML always overlap+ATR tolerance
inp_m15_depthint12ZigZag M15 Depth
inp_m15_devint5ZigZag M15 Deviation
inp_m15_backint3ZigZag M15 Backstep
inp_m5_depthint8ZigZag M5 Depth
inp_m5_devint3ZigZag M5 Deviation
inp_m5_backint3ZigZag M5 Backstep
inp_m3_depthint5ZigZag M3 Depth
inp_m3_devint2ZigZag M3 Deviation
inp_m3_backint2ZigZag M3 Backstep
InpStructureSwingWingint2QML + King SNR fractal wing (not ZigZag halfD)
InpFVGSwingWingLTFint3FVG structure wing on native TF and H1
InpFVGSwingWingHTFint2FVG structure wing on H4
InpCHoCHTransitionMaxBarsint12M15 bars allowed for CHoCH -> confirming BOS
InpLimitExpirationBarsint30Limit lifetime in execution bars (0 = GTC; not recommended for scalping)
InpTesterExecutionModeENUM_TESTER_EXECUTION_MODETESTER_MATRIX_OFFTester: single best variant by default; use COLLECTION only for explicit variant research
InpStrictValidationLearningboolfalseStrict tester validation is read-only by default (prevents in-sample leakage)
inp_fvg_min_multiplierdouble1.5FVG Gap (multiplier * Spread)
InpFibMatchTolerancedouble0.030Max ratio distance from 0.618/0.705/0.786
InpEntryVariantsstringALLCSV/| whitelist: OB_15,OB_45,FVG_50,FIB_618,FIB_705,FIB_790
InpVariantClusterMinATRdouble0.50H2: minimum sibling distance within one signal, in ATR units

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone yanstd888/institutional-smc-scalper-mt5 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

EA Scalper XAUUSD

by francomascareloai
266 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 4 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Bakome Gold Scalper

by BAKOME-Hub
29 stars

Bakome Gold Scalper is an automated trading solution for MetaTrader 5 specifically designed for the gold market. It executes trades based on Inner Circle Trader concepts, incorporating Fair Value Gaps, Order Blocks, Liquidity Sweeps, and Silver Bullet kill zones. The system limits trading to specific sessions, primaril

MT5 Trading robot SMC / ICT / price actionScalping

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 10 months ago None stated GitHub repository of Prop Firm EA Fleet

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 9 months ago Custom licence GitHub repository of Simba Sniper EA
6 stars

This Expert Advisor for MetaTrader 5 automates a pure price-action strategy primarily designed for gold on the five-minute timeframe. It identifies market trends using swing point structures like higher highs and lower lows without lagging indicators. The EA creates supply and demand zones from engulfing candle pattern

MT5 Trading robot Trend followingSMC / ICT / price actionScalping

CRT TBS Gold Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for gold trading using Candle Range Theory and Time-Based Strategy principles. It identifies market structure through the Accumulation, Manipulation, and Distribution cycle while detecting Fair Value Gaps and Order Blocks. The robot executes trades exclusively during specifi

MT5 Trading robot SMC / ICT / price actionScalpingTrend following

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