Gold and scalping: liquidity sweeps, market structure and fair value gaps
Three new blocks for smart money concepts, session levels, Asian, London and New York opening-range presets, and a gold template tested on almost four years of XAUUSD M1.
· Blocks, Templates, Gold
Many of you build EAs for gold and for short timeframes, so this release is for you. It brings three new blocks for the ideas behind smart money concepts (SMC), session levels for the price levels day traders watch, and the first tested gold template.
Three new blocks
- Liquidity Sweep passes when the last closed bar went beyond a level and closed back inside it. The level can be yesterday’s high or low, last week’s, the Asian session’s, or the highest high or lowest low of recent bars. A minimum distance in pips ignores small pokes. Most traders use it to fade stop hunts: sell after a high is swept, buy after a low is swept.
- Market Structure finds swing highs and lows on closed bars and passes on the bar that closes beyond the last one. It tells a break of structure (a break in the direction of the trend) from a change of character (the first break against it).
- Fair Value Gap finds three-candle imbalances, bullish or bearish. It can pass on the bar after a gap forms, or while price is back inside a recent gap that later bars haven’t filled.
All three follow the same rules in the backtest and in the MT4 and MT5 code you export, and they’re built from closed bars, so a signal never changes after the fact.
Session levels and presets
Conditions can now read yesterday’s high and low, last week’s high and low and the Asian session’s high and low (00:00–08:00 server time), and the tester draws them on the chart. The Opening Range block has new presets for the Asian range, the London open and the New York open, so a session breakout takes one block.
The first gold template
The template gallery now opens on a Gold tab. Its first entry is XAUUSD New York Open Fair Value Gap. On M5, in the first 90 minutes of New York trading, it takes the first fair value gap of at least $0.50 in the gap’s direction. It makes one trade a day at 1% risk, with a $5 stop and a $10 target, and closes any open trade at 22:00 server time.
We designed it on XAUUSD M1 from February 2023 to December 2024, then checked it on January 2025 to November 2026, which we hadn’t used, with real spreads and $7 per lot commission:
| Period | Profit factor |
|---|---|
| 2023–2024 (design) | 1.17 |
| 2025–2026 (check) | 1.16 |
It made money in each calendar year (profit factor 1.19, 1.15, 1.24 and 1.09) over 929 trades, with a maximum drawdown of 17.5%. Buys and sells were both profitable, so it isn’t simply riding gold’s rise. With 20 points of extra slippage on every entry, the profit factor stayed at 1.07 or above.
It was the only one of about ten gold ideas that passed. Sweep fades, London gap trades and Asian range breakouts either lost money in 2025–2026 or only made money on longs, so they’re not in the gallery. Past results don’t predict future ones: test the template on your broker’s data and on a demo account first.
The times assume the usual GMT+2 / GMT+3 server clock (16:30 server time is 09:30 in New York). If your broker’s server runs on GMT, set the start time to 14:30 in winter and 13:30 in summer.
Scalping on the free plan
Free accounts can now run M5 and M15 backtests on the simulated practice data, as well as H1, H4 and D1. Backtests on M1 to M30 with your own history are part of Pro.
Try it
Open the template from the gallery, or drag the new blocks from the palette into any project. Every setting is described in the block reference.
Build your first EA today
The free plan includes three projects, backtests on H1 to D1 over a year, MQL4/MQL5 export and the converter.