Buys after a tight 20 and 200 period SMA spread and a bullish elephant candle near the 200 SMA. Sells short when the SMAs spread apart with a topping tail candle, and each trade targets 3 times its risk.
Best run of 2. US Crude Oil, 1 hour, spread 3, from run sweeps:2026-10-07-CRUDE-1h-opt.tsv:2.
| Period | Up to 2026-10-07 |
| Instrument | US Crude Oil, 1 hour |
| Spread | 3 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 1 hour | n/a | 947 | 22.70 | 2,371 EUR | -1,655 |
| DAX 40 | Daily | n/a | 153 | 20.26 | 2,249 EUR | -1,728 |
Charts
The code
// ============================================================== // SMA Spread Elephant Candle // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false mafast = Average[20](close) maslow = Average[200](close) myAtr = AverageTrueRange[14](close) body = abs(close - open) avgbody = Average[20](body)
32 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 2 market and timeframe combinations. The best run by trade count was US Crude Oil, 1 hour, with 947 trades.
The best run had a maximum drawdown of 1,655 EUR at the tested position size, against a net result of 2,371 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.