Description
XAUUSD M5 Swing Liquidity SMC
Automated gold cBot for cTrader. It runs on the XAUUSD five-minute candlestick chart and combines two entry modules. Both modules open positions with market orders at a fixed 0.01 lot.
When the cBot opens a trade
Module A: flat swing levels. The cBot tracks the latest swing high and swing low. When a level stays flat for four bars, it looks to buy near the lower level or sell near the upper level. H1 and H3 swing filters decide which touches qualify. Default take profit: 51 pips. Default stop loss: 380 pips. The position is also closed early if the floating loss reaches 331 pips.
Module B: swing liquidity breakouts. The cBot looks for a candle close beyond swing levels on M5, H1 and H2 in the same direction. Before entry it checks the H1 moving-average colour and slope, a signal score, an ADX strength filter, the H4 EMA 50 trend and a maximum spread of 5 pips. Default stop loss: fixed 791 pips. Default take profit: the nearest opposing swing level, or 68 pips when no usable level exists.
Position sizing and risk
Each module trades a fixed 0.01 lot and holds one position at a time, so the cBot holds at most two positions (0.02 lot in total). Equity-based lot increases are disabled by default. There is no compounding, no grid and no martingale.
On Pepperstone, 1 pip on XAUUSD is 0.10 in price, so the largest stop (791 pips at 0.01 lot) is about USD 79, or about 1.6% of the USD 5,000 reference balance. Stops are much wider than targets, so one losing trade can offset several winning trades. There is no daily loss limit in the default settings.
How it differs from XAUUSD M5 ATR Fusion
This cBot is the simpler of my two XAUUSD M5 products: two modules, at most two positions. XAUUSD M5 ATR Fusion uses the same two modules and adds ATR, Fair Value Gap, order block, Bollinger and M15 EMA modules, so it trades more often and can hold up to eight positions.
Historical backtest results
- Broker: Pepperstone, cTrader backtest
- Symbol and timeframe: XAUUSD, M5
- Period: 15 February 2024 to 26 October 2026
- Leverage: 1:500
- Starting balance: USD 5,000
- Ending balance: USD 7,232.17
- Net profit: USD 2,232.17 (+44.64%)
- Profit factor: 1.47
- Maximum balance drawdown: 5.09%
- Maximum equity drawdown: 4.99%
- Total trades: 1,215
- All trades used the same 0.01 lot size
These are historical simulation results with the default settings. They are not live trading results. Real results depend on spread, commission, swap, slippage and broker conditions.
Recommended usage
Use on XAUUSD M5 with a broker that allows 0.01-lot gold orders. The recommended reference balance is USD 5,000, as used in the backtest. Test on a demo account before live trading.
Risk disclaimer
Trading involves risk. Past performance does not guarantee future results.
The difference with my other bot XAUUSD M5 ATR FUSION is that, this one, only uses 2 modules, less trades but good signals.
Summary
Module A targets flat swing levels by monitoring recent swing highs and lows that remain stable for four bars, entering buy orders near lower levels and sell orders near upper levels. It applies filters from higher timeframes (H1 and H3) and uses predefined take profit (51 pips) and stop loss (380 pips) levels, with early closure if losses reach 331 pips.
Module B focuses on swing liquidity breakouts, seeking candle closes beyond swing levels on M5, H1, and H2 charts in the same direction. It incorporates trend and strength filters including H1 moving average slope, ADX, H4 EMA 50, and spread limits. Stop loss is fixed at 791 pips, with take profit set to the nearest opposing swing level or 68 pips if none is available.
The cBot does not use compounding, grid, or martingale strategies. It is recommended for use with brokers supporting 0.01-lot gold orders and a reference balance of USD 5,000. Historical backtests on Pepperstone with 1:500 leverage from February 2024 to October 2026 show a net profit of 44.64%, a profit factor of 1.47, and maximum drawdowns around 5%. Trading involves risk and past performance does not guarantee future results.
