Buys when the difference between 11 and 21 period SMAs crosses above 0 while a volume oscillator is positive. Sells short on the mirror cross, with a stop at the 10 bar extreme and a target at 1.5 times that risk.
Best run of 6. US Crude Oil, 4 hours, spread 3, from run sweeps:2026-10-07-CRUDE-4h-opt.tsv:7.
| Period | Up to 2026-10-07 |
| 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-07 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 4 hours | n/a | 432 | 44.44 | 8,557 EUR | -3,222 |
| Dow Jones | 4 hours | n/a | 224 | 43.30 | 14,790 EUR | -4,653 |
| Nikkei 225 | Daily | n/a | 69 | 40.58 | 14,517 USD | -14,342 |
| Nasdaq 100 | Daily | n/a | 65 | 44.62 | 11,227 EUR | -5,395 |
| S&P 500 | 4 hours | n/a | 334 | 38.62 | 1,209 EUR | -963 |
| Gold | Daily | n/a | 118 | 43.22 | 1,024 EUR | -547 |
Charts
The code
// ============================================================== // Volume Filtered Zero Line Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false vshort = ExponentialAverage[6](volume) vlong = ExponentialAverage[12](volume)
33 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 6 market and timeframe combinations. The best run by trade count was US Crude Oil, 4 hours, with 432 trades.
The best run had a maximum drawdown of 3,222 EUR at the tested position size, against a net result of 8,557 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.