The strategy buys 1 contract when +DI crosses above -DI while RSI(6) is above its 14 bar average, or when RSI(6) crosses above that average while +DI is above -DI. It closes the long when -DI crosses above +DI.
Best run of 17. Gold, 4 hours, spread 0.6, from run pf:2026-10-10-GOLD-4h.tsv:1.
| Period | Up to 2026-10-10 |
| Instrument | Gold, 4 hours |
| Spread | 0.6 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 4 hours | 1.47 | 1,126 | 34.10 | 3,383 EUR | -719 |
| USD/JPY | 4 hours | n/a | 1,327 | 33.01 | 445,870 USD | -320,140 |
| EUR/USD | Daily | n/a | 534 | 30.90 | 50,089 USD | -30,520 |
| Nikkei 225 | Daily | n/a | 483 | 30.43 | 35,990 USD | -12,318 |
| Silver | Daily | n/a | 502 | 28.09 | 29,366 USD | -20,435 |
| Nikkei 225 | 4 hours | n/a | 986 | 32.76 | 28,184 USD | -8,256 |
| Dow Jones | Daily | n/a | 595 | 33.78 | 16,385 EUR | -7,972 |
| Dow Jones | 4 hours | n/a | 399 | 38.10 | 12,813 EUR | -5,589 |
| Nasdaq 100 | Daily | n/a | 497 | 35.21 | 12,007 EUR | -5,689 |
| DAX 40 | 4 hours | n/a | 1,200 | 35.08 | 10,918 EUR | -3,417 |
| Nasdaq 100 | 4 hours | n/a | 1,196 | 34.36 | 9,706 EUR | -6,193 |
| Dow Jones | 1 hour | n/a | 1,563 | 32.89 | 7,044 EUR | -6,881 |
| DAX 40 | Daily | n/a | 673 | 31.35 | 6,585 EUR | -6,058 |
| S&P 500 | Daily | n/a | 658 | 32.22 | 2,286 EUR | -807 |
| Gold | Daily | n/a | 560 | 29.64 | 2,040 EUR | -1,086 |
| Gold | 1 hour | n/a | 4,414 | 27.59 | 1,193 EUR | -999 |
| S&P 500 | 4 hours | n/a | 1,242 | 35.10 | 1,089 EUR | -934 |
Charts
Top 10 of 17 runs. The full list is in the table above.
The code
// ============================================================== // DI Crossover RSI Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false dip = DIplus[14](close) dim = DIminus[14](close) myRsi = RSI[6](close) rsisma = Average[14](myRsi)
15 more lines: the entry and exit rules.
Setup
Gold had no history beyond the standard run, so both runs used 30,000 bars.
| Bars available | 30,000 |
| Net, standard 200,000-bar run | 3,383.30 EUR |
| Net, long run | 3,383.30 EUR |
| Net on the older data alone | 0.00 EUR |
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 17 market and timeframe combinations. The best run was Gold, 4 hours, with a profit factor of 1.47 over 1,126 trades.
The best run had a maximum drawdown of 719 EUR at the tested position size, against a net result of 3,383 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.