Back to Trending
RepositoryMQL5IDIndonesia
yanstd888

yanstd888/institutional-smc-scalper-mt5

Institutional-grade Smart Money Concepts (SMC) & ICT Gold (XAUUSD) Scalping Expert Advisor for MetaTrader 5 (MT5). Non-martingale, verified 6.5-year backtest.

92stars
6forks
1issues
24views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: smart-money-concepts

#1 Repository of the day

1
TINIX TRENDING·Topic: algorithmic-trading

#1 Repository of the day

1
TINIX TRENDING·Topic: expert-advisor

#1 Repository of the day

Smart Money Concepts (SMC) & ICT Trading Expert Advisor for MetaTrader 5 (MT5)

MetaTrader 5 MQL5 License: MIT Asset: Gold / XAUUSD Trading Strategy Backtest Verified

YANSTD Institutional SMC Scalper MetaTrader 5 Expert Advisor

YANSTD is an open-source, institutional-grade Smart Money Concepts (SMC) and Inner Circle Trader (ICT) automated trading Expert Advisor (EA) built for MetaTrader 5 (MT5). Engineered specifically for Gold (XAUUSD) intraday scalping, it combines algorithmic Liquidity Sweeps, Order Blocks (OB), Fair Value Gaps (FVG), and Market Structure Support & Resistance (MSNR) with zero martingale and strict mathematical risk management.


📈 Live Strategy Tester Equity Curve (2025–2026)

MetaTrader 5 Equity Curve & Deposit Load

Figure 1: Verified MetaTrader 5 Strategy Tester Balance/Equity Curve ($10k to $17k+) and Deposit Load graph showing strictly controlled margin utilization (<0.6% load, zero martingale/grid).


🖥️ Interactive On-Chart HUD & Terminal Dashboard

YANSTD features a built-in, lightweight native GUI overlay built directly on top of MetaTrader 5's chart engine (GUI/ControlPanel.mqh and GUI/StatsDashboard.mqh). It provides institutional-grade telemetry, real-time risk budgeting, and manual intervention controls without external software.

YANSTD MetaTrader 5 HUD Dashboard Overview

Figure 2: Full On-Chart HUD Dashboard with real-time KPI metrics, on-chart equity curve, MTF Trend Meter, Signal Status scanner, and bottom execution dock.

Dashboard Capabilities & Modules

  1. Top KPI Metric Cards: Live tracking of Closed Trades, Win Rate radial gauge, Profit Factor, Recovery Factor, and Balance/Equity Drawdown.
  2. Signal Status Monitor: Real-time multi-timeframe cascade tracker (SCANNING M15 > M5 > M3), session killzone indicator (Asian/London/NY), and macroeconomic event status (News: CLEAR).
  3. Multi-Timeframe (MTF) Trend Meter: Live momentum and structural alignment scoring across M3, M5, M15, M30, H1, and H4 with directional confluence calculation and confidence rating.
  4. Execution & Risk Dock: One-click risk allocation presets (0.5%, 1.0%, 1.5%, 2.0%), automated lot sizing stepper, manual Limit/Cut/Delete actions, and an emergency CLOSE ALL circuit breaker.
YANSTD Interactive Performance Calendar and Daily Summary

Figure 3: Floating modal windows displaying the interactive Monthly Trading Calendar and Daily Performance Summary with radial win-rate & drawdown gauges.

  1. Floating Analytical Modals:
    • Performance Calendar: Visual month-at-a-glance P&L calendar tracking daily closed trades, win rate percentage, and gross dollar profit.
    • Daily Summary: Detailed daily analytics breakdown with radial drawdown ring, total pips, executed volume, and starting vs. ending balance.

📊 Verified Backtest Performance & Strategy Tester Results

1. Multi-Year Benchmark (Real Ticks 2020–2026)

Tested on XAUUSD.FXSPREAD using 100% real tick data, execution spread emulation, and fixed lot sizing ($10,000 baseline):

MetricL5 High-Precision Scalper (L5_SCALPING_M2.set)G27B Core Champion (G27B_CHAMPION_XAUUSD.set)
TimeframeM3M3
Testing Period2020.01.01 – 2026.08.31 (6.5 Years)2020.01.01 – 2026.08.31 (6.5 Years)
Initial Deposit$10,000.00$10,000.00
Total Net Profit+$11,962.86 (+119.6%)+$9,196.81 (+91.9%)
Profit Factor (PF)1.421.34
Max Equity Drawdown10.22%11.81%
Total Closed Trades1,3531,309
Win Rate62.1%60.8%
Risk / Reward Ratio (RRR)Dynamic Structural (Avg 1:1.8)Dynamic Structural (Avg 1:1.6)
Lot Sizing Model0.10 Fixed Lot (Non-Compounding)0.10 Fixed Lot (Non-Compounding)

2. Strategy Tester Statistical Audit (100% History Quality)

MetaTrader 5 Strategy Tester Detailed Report

Figure 4: Complete MetaTrader 5 Strategy Tester Report Breakdown with execution distribution, profit factor, drawdown metrics, and session trade heatmaps.

Statistical ParameterValueInstitutional Significance
History Quality100%Tested with 133,828,792 real ticks across 196,096 bars. Zero bar synthetic extrapolation.
Gross Profit / Loss$31,456.99 / -$24,623.32Substantial positive gross expectancy over sample.
Sharpe Ratio8.50Exceptionally high risk-adjusted returns with low return variance.
Recovery Factor3.30Net profit is 3.3x greater than maximal dollar drawdown.
Max Equity Drawdown11.29% ($2,071.34)Low equity drawdown relative to capital growth.
Total Trades / Deals1,431 Trades / 2,385 DealsLarge sample size demonstrating statistical significance ($p < 0.001$).
Win Rate50.17% (718 Wins / 713 Losses)Balanced win rate with asymmetrical payout.
Asymmetric Payoff$936.72 Largest Win vs. -$120.05 Largest LossThe strategy limits downside with hard structural stops while letting runners ride to structural POIs.
Average Win / Loss+$43.81 / -$34.53Positive payoff ratio ($1.27 : 1$) creates durable compounding edge.
Peak Session LiquidityHours 12:00 – 14:00 UTCConfirms alignment with the London / New York overlap session killzones.

3. Strategy Tester Configuration & Input Environment

MetaTrader 5 Strategy Tester Configuration

Figure 5: Real tick modeling setup on XAUUSD.FXSPREAD M3 timeframe with 1:2000 leverage.

MetaTrader 5 Strategy Tester Input Parameters

Figure 6: EA input parameters showing MSNR lookback, OTE Fibonacci 0.618–0.790 thresholds, King SNR HTF bias, and M15/M5/M3 ZigZag multi-timeframe engine.


🧠 Algorithmic Architecture & Trading Mechanics

                       [ MULTI-TIMEFRAME PIPELINE ]

   Higher Timeframe Bias (H4 / H1)
   └── Unmitigated King SNR & Institutional Swing Trend
         │
   Intermediate Structure (M15)
   └── Order Block (OB) Identification via 3-Candle Displacement
   └── Fair Value Gap (FVG) Matrix (Detection, Overlap & Imbalance)
   └── Quasimodo Levels (QML) & Break of Structure (BOS)
         │
   Zone Refinement (M5)
   └── Nested Zone Containment Check (M5 Zone ⊆ M15 POI)
         │
   Execution Trigger (M3)
   └── Asian/London/NY Session Killzone Verification
   └── Liquidity Pool Sweep (High/Low of Previous Swings)
   └── Change of Character (CHoCH) Validation
   └── Quality Grader (Grades S/A/B Admitted, Grade D Rejected)
         │
   Order Execution & Trade Lifecycle
   ├── Limit Order placed at Consequent Encroachment (50% FVG) or OTE (0.786 FIB)
   ├── Hard Structural SL + Volatility Buffer
   └── Automated Multi-Stage Exit: 50% TP1 @ 1.5R -> Milestone BE Lock -> Opposing POI

🆚 Retail Grid EA vs. Institutional SMC EA

FeatureTypical Retail EA / MartingaleYANSTD SMC Algorithmic EA
Stop LossNo Stop Loss or arbitrary wide SLHard structural SL on every order
Position SizingExponential multiplier (Martingale)Fixed fractional lot or fixed volume
Deposit LoadEscalates to 50%–100% during drawdownStays strictly under 0.6% margin utilization
Entry LogicIndicator crosses (RSI / MACD / Stoch)Institutional liquidity sweeps & FVG mitigation
Market ConditionOnly survives ranging/sideways marketsTrades with market structure across all market regimes
Account SafetyHigh catastrophic margin call riskControlled equity drawdown (Max <12%)
ExecutionMarket orders subject to slippagePassive Limit Orders at optimal discount/premium

🚀 Quick Start Guide (MetaTrader 5)

Prerequisites

  • MetaTrader 5 (MT5) build 4000 or newer.
  • Broker: Low-spread ECN or Raw Spread account (spread on XAUUSD <= 15-20 points).
  • Chart: XAUUSD, Timeframe M3 (or M5).

1. Installation

  1. Clone this repository or download the latest release:
    git clone https://github.com/yanstd888/institutional-smc-scalper-mt5.git
    
  2. In MT5, click File -> Open Data Folder.
  3. Navigate to MQL5/Experts/ and copy the repository contents into a new directory named YANSTD/.
    • Resulting path: MQL5/Experts/YANSTD/YANSTD.mq5

2. Compilation

  1. Open MetaEditor (F4 inside MT5).
  2. In the Navigator, open Experts/YANSTD/YANSTD.mq5.
  3. Click Compile (F7).
  4. Ensure the output shows: 0 errors, 0 warnings.

3. Setup Preset & Launch

  1. Open a XAUUSD M3 chart.
  2. Drag YANSTD from Navigator onto the chart.
  3. In the Common tab, enable Allow Algo Trading.
  4. In the Inputs tab, click Load and select:
    • Presets/L5_SCALPING_M2.set (Recommended: High-precision scalper)
    • Presets/G27B_CHAMPION_XAUUSD.set (Alternative: Core champion)
  5. Click OK. The HUD on-chart diagnostic dashboard will initialize.

🎛 Production Presets

Preset FilePrimary EngineTarget PairLimit ExpiryBest Used For
L5_SCALPING_M2.setMode 2 (SMC + Soft MSNR)XAUUSD M360 barsOptimal profitability, lowest drawdown (10.2%), FVG 50% & Deep Fib entries.
G27B_CHAMPION_XAUUSD.setMode 2 (SMC + Soft MSNR)XAUUSD M330 barsConservative baseline, tighter limit order expiration.
L0_BASELINE_CONTROL.setMode 2 (Benchmark)XAUUSD M330 barsStatistical control run for backtest comparison.

📂 Repository Directory Structure

├── YANSTD.mq5                 # Primary MetaTrader 5 Expert Advisor
├── images/                    # Verified Strategy Tester charts & equity graphs
│   ├── equity-curve-2025-2026.png
│   ├── strategy-tester-report.png
│   ├── strategy-tester-settings.png
│   └── strategy-tester-inputs.png
├── GUI/                       # Chart Interface & HUD
│   ├── ControlPanel.mqh       # Interactive chart buttons & manual overrides
│   └── StatsDashboard.mqh     # Real-time metrics HUD & session timer
├── Modules/                   # Modular algorithmic trading core
│   ├── Defines.mqh            # System-wide enums, constants, signal structs
│   ├── FVGValidator.mqh       # Fair Value Gap detection & mitigation tracking
│   ├── MSNREngine.mqh         # Market Structure Support & Resistance mapping
│   ├── MTFTrendMeter.mqh      # Multi-timeframe trend & momentum filter
│   ├── NewsFilter.mqh         # Automated macroeconomic news calendar filter
│   ├── OrderManager.mqh       # Robust execution handler & limit order retries
│   ├── PartialClose.mqh       # Milestone profit taking & lot split engine
│   ├── RiskCalculator.mqh     # Dynamic position sizing & risk per trade
│   ├── SessionManager.mqh     # Asian, London, and New York Killzone manager
│   ├── SignalDiagnostics.mqh # Setup rejection analytics & telemetry
│   ├── SignalEngine.mqh       # POI scoring, liquidity sweeps & entry gates
│   ├── SmartBrain.mqh         # Historical pattern confidence overlay
│   ├── SpreadMonitor.mqh      # Volatility circuit breaker & spread guard
│   ├── TrailingStop.mqh       # Structural trailing stops & BE lock
│   └── ZigZagEngine.mqh       # Non-repainting fractal swing pivot engine
├── Presets/                   # Audited .set files for Strategy Tester & Live
├── Tests/                     # Automated unit testing suite
├── Tools/                     # Python quantitative analysis tools
│   ├── mkpreset.py            # Strict CRLF UTF-8 BOM preset generator
│   ├── parse_report.py        # MT5 Strategy Tester HTML report parser
│   └── export_web_report.py   # Interactive HTML analytics generator
├── docs/                      # Technical manuals
│   ├── ARCHITECTURE.md        # 60+ section algorithmic specification
│   └── DEMO_GUIDE.md          # Multi-chart forward demo guide
├── CONTRIBUTING.md            # Guidelines for open-source contributors
├── SECURITY.md                # Security & zero-credential declaration
├── LICENSE                    # MIT Open Source License
└── README.md                  # This file

❓ Frequently Asked Questions (FAQ)

Can I run this EA on other currency pairs or crypto?

The mathematical models and price-action thresholds (ATR ratios, FVG minimum point heights) are calibrated and backtested specifically on XAUUSD (Gold). Running on EURUSD, GBPUSD, or BTCUSD requires recalibrating symbol-specific parameters in the Modules/Defines.mqh configuration.

Does this EA require a VPS?

Yes. For low latency limit order fills and accurate session killzone execution, a Windows VPS located in London (LD4) or New York (NY4) with low ping (<5ms) to your broker is strongly recommended.

Is this EA compatible with MetaTrader 4 (MT4)?

No. YANSTD is written natively in MQL5 utilizing MT5-exclusive features including millisecond order routing, native asynchronous orders, and real tick data multi-timeframe synchronization.


🛡 Security & Privacy

  • 100% Offline Execution: All calculations, indicators, and trade commands run locally inside your MetaTrader 5 client terminal.
  • Zero Credentials: No hardcoded API keys, investor passwords, account numbers, or webhooks exist in the codebase.
  • Audited Scripts: All development and backtest utilities use generic environment variables ($env:MT5_TERMINAL_PATH, $env:MT5_DATA_PATH).

⚠️ Disclaimer

Past performance is not indicative of future results. Trading foreign exchange, precious metals, and financial derivatives carries significant risk of capital loss. Always perform forward testing on a demo account before trading with live capital. This software is released for educational and research purposes under the MIT License.

Similar Projects

Discover other similar projects and AI models.

RepositoryMQL5
codedpro/mt5-trade-split-manager

🤖 AI-Agent Friendly MT5 Expert Advisor with intelligent order splitting, automatic trailing stops, and REST API. Perfect for Gold/Silver trading with Claude AI integration. Split orders 60/10/10/10/10 for maximum profit optimization.

93
Jul 6, 2026
RepositoryMQL5
NadirAliOfficial/STAR-EA-v11.20

ICT-based MT5 Expert Advisor with 12-scenario market classification engine — Order Blocks, FVG, OTE, Liquidity, CRT, Judas Swing, Silver Bullet, AMD

54
Sep 21, 2026
RepositoryMQL5
francomascareloai/EA_SCALPER_XAUUSD

WIP — XAUUSD (Gold) automated-trading research, in the open. MQL5 (public) + Python/NautilusTrader (private). Studied thousands of bots first. No signals, no profit claims — just the engineering.

316
Nov 19, 2026
RepositoryMQL5
MT5-Automation-Labs/mt5-gold-scalper-ea

MT5 gold (XAUUSD) M1 scalper EAs: Z-score mean reversion plus trend breakout, with dynamic equity risk tiers, session window, spread filter and cost-aware broker-side take-profit.

135
Oct 15, 2026
RepositoryMQL5
6alaile/MetaTrader5-to-Telegram

An expert advisor to help traders connect their MT5 account, via the terminal with a Telegram Bot to broadcast messages to a user, group or channel.

110
Sep 29, 2021
RepositoryMQL5
9nix6/Median-and-Turbo-Renko-indicator-bundle

Open-source MetaTrader 5 SDK for Expert Advisors and indicators that run directly on Median & Turbo Renko charts. Works with both the MQL5 Market edition and Ultimate Renko from az-invest.eu — client library, 64 ported indicators, six working EAs.

102
Nov 23, 2026
RepositoryHTML
AbdulWasay13/TradingView-Pipe-Executor

Automated MT5 Trading Bot with AI Alerts & Webhook Bridge 2026

132
Nov 14, 2026
RepositoryPython
GifariKemal/xaubot-ai

AI-powered XAUUSD (Gold) trading bot with XGBoost ML, Smart Money Concepts (SMC), and HMM regime detection for MetaTrader 5

127
Feb 11, 2026
RepositoryHTML
Dream-XR/MT5-Post-Trade-Insight-Reporter

AutoTrade Forex Signals: Telegram to MT5 EA 2026 Strategy

121
Nov 27, 2026