Smart XAU Robot
- Experts
- Version: 1.1
- Activations: 5
SMC XAUUSD EA is a MetaTrader 5 Expert Advisor designed specifically for XAUUSD (Gold) using a structured Smart Money Concepts approach.
Instead of relying on basic indicator crossovers or excessive indicator stacking, the EA analyzes market structure, liquidity behavior, institutional trading zones, and price displacement to identify potential high-quality trading opportunities.
The strategy combines higher-timeframe directional bias with lower-timeframe execution, allowing the EA to wait for a complete Smart Money Concepts setup before opening a position.
Core Strategy
The EA follows a structured trade sequence:
Liquidity Sweep → CHoCH Confirmation → Order Block/FVG Retracement → Entry Confirmation → Trade Execution
A trade is only considered after the required conditions have aligned.
1. Higher-Timeframe Market Structure
The EA analyzes swing highs and swing lows to determine market direction.
It automatically identifies:
-
Break of Structure – BOS
-
Change of Character – CHoCH
-
Bullish market structure
-
Bearish market structure
The higher timeframe is used to establish the main trading bias before the EA searches for entries.
Default higher timeframe: H1
2. Liquidity Detection
The system automatically identifies potential liquidity pools around:
-
Swing highs
-
Swing lows
-
Equal highs
-
Equal lows
-
Intraday liquidity levels
The EA waits for price to sweep liquidity before considering a trade.
For bullish setups, the system looks for a sell-side liquidity sweep.
For bearish setups, it looks for a buy-side liquidity sweep.
This helps prevent the EA from entering before a potential stop hunt or liquidity grab has occurred.
3. CHoCH Confirmation
After liquidity has been swept, the EA waits for lower-timeframe market structure to confirm the potential reversal or continuation.
A bullish setup requires price to break above a recent lower-timeframe swing high.
A bearish setup requires price to break below a recent lower-timeframe swing low.
This provides additional confirmation before an entry zone is considered.
4. Automatic Order Block Detection
The EA automatically identifies potential institutional Order Blocks.
For bullish trades it searches for the last bearish candle preceding an impulsive bullish move.
For bearish trades it searches for the last bullish candle preceding an impulsive bearish move.
Detected Order Blocks are automatically displayed directly on the chart.
5. Fair Value Gap Detection
The EA also detects Fair Value Gaps (FVGs) created by strong price displacement.
Only FVGs larger than the configured minimum size are considered.
Bullish and bearish FVG zones are automatically plotted on the chart and monitored for retracement opportunities.
6. Premium & Discount Zones
The EA automatically calculates the active swing range and divides it into:
-
Premium Zone
-
Midpoint / Equilibrium
-
Discount Zone
Bullish trades are primarily searched for in the discount region.
Bearish trades are primarily searched for in the premium region.
This helps prevent buying too high or selling too low within the active market structure.
7. Displacement Filter
Before entering a trade, the EA checks whether price has demonstrated sufficient displacement.
The filter evaluates:
-
Candle body size
-
ATR-based volatility
-
Candle direction
-
Wick-to-range ratio
This is designed to reduce entries caused by weak or indecisive price movements.
8. Volume Confirmation
An optional tick-volume filter compares current volume with recent average volume.
When enabled, the entry candle must show sufficient activity before the EA can proceed with the trade.
9. Automatic Risk Management
The EA calculates position size automatically according to the selected percentage of account balance.
Default risk:
0.50% per trade
Lot size is calculated using:
-
Account balance
-
Stop-loss distance
-
Symbol tick value
-
Symbol tick size
-
Broker minimum and maximum lot restrictions
This allows risk to remain proportional to the trading account.
10. Automatic Stop Loss & Take Profit
Stop Loss is placed beyond the relevant lower-timeframe market structure with an additional configurable safety buffer.
Take Profit is calculated using a configurable Risk-to-Reward ratio.
Default:
Risk : Reward = 1 : 2
Both parameters can be adjusted by the trader.
11. Automatic Breakeven Protection
The EA includes optional automatic breakeven management.
Once price reaches the selected profit threshold, the system can move the Stop Loss to the original entry price.
Default breakeven trigger:
1R
This helps protect trades after price has moved sufficiently in the intended direction.
On-Chart Smart Money Dashboard
The EA includes a real-time dashboard displaying important information such as:
-
Current market bias
-
Last BOS or CHoCH event
-
Current trade sequence
-
Premium/Discount range
-
Current market zone
-
Number of Order Blocks detected
-
Number of Fair Value Gaps
-
Liquidity pools detected
-
Current spread
-
Trading-session status
-
Number of open positions
-
Current position profit/loss
-
Risk percentage
-
Risk-to-Reward ratio
This allows traders to visually understand what the EA is currently waiting for before opening a trade.
Automatic Chart Visualization
The EA automatically draws important Smart Money Concepts structures directly on the MetaTrader 5 chart, including:
-
BOS labels
-
CHoCH labels
-
Buy-Side Liquidity
-
Sell-Side Liquidity
-
Intraday liquidity levels
-
Bullish Order Blocks
-
Bearish Order Blocks
-
Bullish Fair Value Gaps
-
Bearish Fair Value Gaps
-
Premium zones
-
Discount zones
-
Equilibrium / midpoint
This makes the EA useful not only for automated execution but also for visually observing how the strategy interprets market structure.
Session Control
The EA includes an optional trading-session filter.
It can be configured to trade only during selected broker-time hours or to operate across all trading sessions.
By default, the session restriction is disabled, allowing the EA to continuously scan the market for qualifying setups.
Default Configuration
Primary Instrument: XAUUSD
Platform: MetaTrader 5
Higher-Timeframe Bias: H1
Entry Timeframe: M5
Default Risk: 0.50%
Default Risk-to-Reward: 1:2
Breakeven: Enabled
Session Restriction: Disabled / All Sessions
Trading Style: Smart Money Concepts / Market Structure / Liquidity / Price Action
Suitable For
SMC XAUUSD EA may appeal to traders interested in:
-
Smart Money Concepts
-
Gold trading
-
Market structure
-
Liquidity sweeps
-
Order Blocks
-
Fair Value Gaps
-
BOS and CHoCH trading
-
Premium and Discount analysis
-
Automated risk management
-
Systematic price-action trading
Important
The EA does not use:
-
Martingale
-
Grid trading
-
Recovery systems
-
Unlimited position averaging
The system normally allows only one EA-controlled position on the symbol at a time.
Every trading strategy involves risk. Historical or backtest performance does not guarantee future results.
Before using the EA with real funds, traders should perform their own Strategy Tester evaluations and forward-test the EA on a demo account using the intended broker, XAUUSD specification, spread conditions and trading environment.
SMC XAUUSD EA combines market structure, liquidity, Order Blocks, Fair Value Gaps, Premium/Discount positioning, volatility confirmation and automated risk management into one structured MT5 trading system.
