The system follows large candles, buying after a green bar whose body exceeds 0.0191 of the close and shorting after a similar red bar. Longs close when the 144-period EMA crosses below the 169-period EMA, and shorts close when it crosses above.
Best run of 11. US Crude Oil, 4 hours, spread 3, from run sweeps:2026-10-11-CRUDE-4h-opt.tsv:20.
| Period | Up to 2026-10-11 |
| Instrument | US Crude Oil, 4 hours |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 4 hours | n/a | 580 | 42.24 | 11,048 EUR | -6,605 |
| EUR/USD | 3 min | n/a | 82 | 43.90 | 342,968 USD | -273,971 |
| EUR/USD | 4 hours | n/a | 11 | 54.55 | 28,157 USD | -26,899 |
| Silver | 3 min | n/a | 32 | 37.50 | 26,097 USD | -10,162 |
| Silver | 15 min | n/a | 109 | 43.12 | 25,100 USD | -14,720 |
| Brent Crude | 30 min | n/a | 211 | 44.55 | 10,566 EUR | -5,061 |
| DAX 40 | 15 min | n/a | 12 | 66.67 | 4,554 EUR | -2,327 |
| DAX 40 | 30 min | n/a | 40 | 45.00 | 4,174 EUR | -3,004 |
| Nasdaq 100 | 3 min | n/a | 5 | 80.00 | 3,152 EUR | -1,156 |
| Dow Jones | 3 min | n/a | 3 | 100.00 | 2,671 EUR | -2,364 |
| FTSE 100 | 15 min | n/a | 6 | 83.33 | 1,489 EUR | -717 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Large Candle Body Follow Trade // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false emaa = ExponentialAverage[144](close) emab = ExponentialAverage[169](close) body = abs(close - open) / close
17 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 11 market and timeframe combinations. The best run by trade count was US Crude Oil, 4 hours, with 580 trades.
The best run had a maximum drawdown of 6,605 EUR at the tested position size, against a net result of 11,048 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.