SMC Gold EA: Smart Money Concepts for XAUUSD M15 with Liquidity Sweep and Order Blocks
Info
The SMC Gold EA: Smart Money Concepts for XAUUSD M15 with Liquidity Sweep and Order Blocks is a Expert Advisor for MetaTrader 5 that smc gold: liquidity sweep and order block ea for xauusd m15an intraday smart money concepts expert advisor for gold. It identifies liquidity sweeps of recent swing highs or lows.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use SMC Gold EA: Smart Money Concepts for XAUUSD M15 with Liquidity Sweep and Order Blocks
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
SMC Gold: Liquidity Sweep and Order Block EA for XAUUSD M15An intraday Smart Money Concepts Expert Advisor for gold.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Smart Money Concept Expert Advisor: Market Structure, FVG, and Pullback Trading - another powerful expert for MetaTrader 5 traders.
SMC Gold: Liquidity Sweep and Order Block EA for XAUUSD M15Also recommended: Gold MT5 Fractal Breakout EA - similar expert with strong performance on MetaTrader 5.
An intraday Smart Money Concepts Expert Advisor for gold. It identifies liquidity sweeps of recent swing highs or lows. Price confirmation is achieved when a candle closes within the sweep candle's body. Trading is executed only in alignment with the H1 trend. Backtested on XAUUSD M15 using 1% risk per trade for the periods of 2025 and 2026.
How it trades
On each new M15 bar, the EA confirms swing highs and lows using a 5-bar lookback on both sides. Only closed bars are considered, ensuring no repainting.
A sweep occurs when a bar's wick extends beyond the last swing high or low by at least 0.15 ATR and then closes back within that swing's range. This is identified as a stop hunt.
The body of the sweep bar defines the order block. If the H1 price is above its 50 EMA, only sweeps of a swing low (buy setups) are considered. If the price is below the EMA, only sweeps of a swing high (sell setups) are considered.
Within the subsequent 3 bars, a candle must close through the order block, and its range must be at least 0.3 ATR. If these conditions are not met, the setup is discarded.
Entry is at market price. The stop loss is placed 0.1 ATR beyond the sweep wick, and the target profit is set at 2 times the stop loss distance.
The EA manages only one open position at a time. It does not employ grid trading, martingale, or averaging down strategies.
Certain features are included based on observed gold market behavior. The order is initially placed without Stop Loss (SL) and Take Profit (TP), with stops attached to the actual fill price immediately after execution. If stops cannot be attached, the position is closed instantly to prevent trading without a stop loss. Entries are disallowed in the last 15 minutes before the symbol's trading session ends to avoid
You may also like: Stochastic Daily Breakout for Gold: Backtested Performance to 2026 - excellent alternative for expert users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property version "1.00"
#property strict
#include <Trade/Trade.mqh>
input group "=== Swing / Structure ==="
input int InpSwingLookback = 5;
input int InpConfirmBars = 3;
input group "=== Volatility (ATR) ==="
input int InpATRPeriod = 14;
input double InpMinSweepATR = 0.15;
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.