Buys dips when the close is below 0.978 times its 16-period EMA and the wave oscillator confirms. Exits when the close is above 1.006 times its 49-period EMA or the trend trigger factor crosses above 100, with a 50% stop.
Best run of 9. US Crude Oil, Daily, spread 3, from run sweeps:2026-10-04-CRUDE-D-opt.tsv:38.
| Period | Up to 2026-10-04 |
| Instrument | US Crude Oil, Daily |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | Daily | n/a | 44 | 77.27 | 3,228 EUR | -2,648 |
| Nikkei 225 | Daily | n/a | 18 | 83.33 | 16,424 USD | -5,644 |
| Nasdaq 100 | Daily | n/a | 28 | 92.86 | 7,421 EUR | -2,751 |
| Silver | 30 min | n/a | 7 | 85.71 | 4,520 USD | -2,557 |
| Silver | 15 min | n/a | 2 | 100.00 | 4,032 USD | -2,922 |
| Dow Jones | Daily | n/a | 2 | 100.00 | 1,965 EUR | -171 |
| Nikkei 225 | 4 hours | n/a | 2 | 100.00 | 1,686 USD | -937 |
| S&P 500 | Daily | n/a | 8 | 87.50 | 687 EUR | -150 |
| Gold | 1 hour | n/a | 1 | 100.00 | 212 EUR | -33.50 |
Charts
The code
// ============================================================== // Wave Oscillator Dip With Trend Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emabuy = ExponentialAverage[16](close) emasell = ExponentialAverage[49](close) ewo = (ExponentialAverage[50](close) - ExponentialAverage[200](close)) / close * 100 myRsi = RSI[14](close) hh = Highest[15](high) ll = Lowest[15](low) buypower = hh - ll[15] sellpower = hh[15] - ll den = buypower + sellpower ttf = 0
13 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 9 market and timeframe combinations. The best run by trade count was US Crude Oil, Daily, with 44 trades.
The best run had a maximum drawdown of 2,648 EUR at the tested position size, against a net result of 3,228 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.