The system buys when price dips below a confirmed swing low, then closes back above it bullishly and above EMA(200). It sells short on the mirror sweep of a swing high closing bearishly below EMA(200), with stops and targets set from the sweep bar.
Best run of 7. Silver, 4 hours, spread 2, from run sweeps:2026-10-03-SILVER-4h-opt.tsv:18.
| Period | Up to 2026-10-03 |
| Instrument | Silver, 4 hours |
| Spread | 2 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 4 hours | n/a | 402 | 23.13 | 7,395 USD | -6,230 |
| Nikkei 225 | Daily | n/a | 142 | 31.69 | 13,533 USD | -11,500 |
| Dow Jones | Daily | n/a | 194 | 24.74 | 6,528 EUR | -5,198 |
| DAX 40 | Daily | n/a | 129 | 26.36 | 4,114 EUR | -3,601 |
| US Crude Oil | 4 hours | n/a | 336 | 25.00 | 3,768 EUR | -2,371 |
| US Crude Oil | Daily | n/a | 130 | 28.46 | 3,144 EUR | -2,573 |
| Gold | 4 hours | n/a | 395 | 23.54 | 1,050 EUR | -543 |
Charts
The code
// ============================================================== // Pivot Liquidity Sweep With EMA // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE sup = 0 ONCE res = 0 ONCE hassup = 0 ONCE hasres = 0 ema = ExponentialAverage[200](close)
29 more lines: the entry and exit rules.
Setup
Questions
Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.
It was tested on 7 market and timeframe combinations. The best run by trade count was Silver, 4 hours, with 402 trades.
The best run had a maximum drawdown of 6,230 USD at the tested position size, against a net result of 7,395 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.