Watches for a candle whose body exceeds 1.5 ATR(14), then buys a bullish candle within 10 bars that holds above the displacement low. Shorts mirror the setup. Stops sit at the displacement low, with targets at 2 times that risk.
Best run of 8. Silver, 1 hour, spread 2, from run pf:2026-10-05-SILVER-1h.tsv:2.
| Period | Up to 2026-10-05 |
| Instrument | Silver, 1 hour |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 1.21 | 1,905 | 32.65 | 50,372 USD | -12,295 |
| USD/JPY | Daily | n/a | 429 | 37.30 | 28,720 USD | -8,730 |
| Dow Jones | 1 hour | n/a | 545 | 36.15 | 19,816 EUR | -8,081 |
| US Crude Oil | 4 hours | n/a | 418 | 37.08 | 10,020 EUR | -3,817 |
| Brent Crude | Daily | n/a | 94 | 44.68 | 8,244 EUR | -6,004 |
| Nasdaq 100 | Daily | n/a | 236 | 31.36 | 4,484 EUR | -4,262 |
| S&P 500 | Daily | n/a | 286 | 31.12 | 2,783 EUR | -1,257 |
| Gold | 30 min | n/a | 2,847 | 33.23 | 1,528 EUR | -1,074 |
Charts
The code
// ============================================================== // Displacement Candle Continuation // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE dispbar = -1 ONCE displow = 0 ONCE disphigh = 0 ONCE bullactive = 0 ONCE bearactive = 0 ONCE lasttrade = -1 myAtr = AverageTrueRange[14](close)
49 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 8 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 1.21 over 1,905 trades.
The best run had a maximum drawdown of 12,295 USD at the tested position size, against a net result of 50,372 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.