The system holds 1 contract long while the ratio of a 10-period SMA to a 100-period SMA is at or above its own 20-period average, and exits when it falls below. It trades long only, with no stop or target.
Best run of 24. Nikkei 225, 4 hours, spread 10, from run pf:2026-10-05-NIKKEI-4h.tsv:6.
| Period | Up to 2026-10-05 |
| Instrument | Nikkei 225, 4 hours |
| Spread | 10 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 4 hours | 1.51 | 538 | 44.42 | 44,626 USD | -9,148 |
| Gold | 1 hour | 1.27 | 2,518 | 39.20 | 3,643 EUR | -753 |
| USD/JPY | 1 hour | 1.20 | 2,936 | 40.74 | 1,150,170 USD | -156,175 |
| USD/JPY | 30 min | n/a | 4,227 | 37.92 | 328,570 USD | -206,900 |
| Nikkei 225 | Daily | n/a | 272 | 37.13 | 26,827 USD | -11,579 |
| Nikkei 225 | 1 hour | n/a | 2,075 | 38.60 | 23,809 USD | -11,788 |
| Dow Jones | Daily | n/a | 330 | 42.42 | 15,603 EUR | -6,526 |
| Nasdaq 100 | Daily | n/a | 244 | 45.90 | 14,906 EUR | -3,744 |
| DAX 40 | 1 hour | n/a | 2,353 | 41.39 | 13,139 EUR | -4,267 |
| DAX 40 | Daily | n/a | 327 | 46.18 | 12,582 EUR | -5,323 |
| Nasdaq 100 | 1 hour | n/a | 2,644 | 38.43 | 12,516 EUR | -3,959 |
| Brent Crude | Daily | n/a | 109 | 46.79 | 11,589 EUR | -7,264 |
| Dow Jones | 1 hour | n/a | 864 | 42.25 | 11,395 EUR | -6,536 |
| Nasdaq 100 | 30 min | n/a | 4,169 | 37.99 | 11,348 EUR | -4,477 |
| US Crude Oil | Daily | n/a | 250 | 46.40 | 9,208 EUR | -8,257 |
| DAX 40 | 4 hours | n/a | 653 | 42.88 | 8,100 EUR | -3,988 |
| DAX 40 | 30 min | n/a | 4,104 | 38.47 | 7,649 EUR | -6,752 |
| Nasdaq 100 | 4 hours | n/a | 711 | 44.30 | 7,326 EUR | -4,587 |
| Brent Crude | 1 hour | n/a | 1,346 | 38.93 | 4,917 EUR | -4,525 |
| S&P 500 | Daily | n/a | 356 | 43.26 | 2,797 EUR | -1,044 |
| Gold | Daily | n/a | 298 | 39.93 | 2,674 EUR | -950 |
| Gold | 4 hours | n/a | 663 | 41.18 | 2,121 EUR | -1,503 |
| S&P 500 | 1 hour | n/a | 2,591 | 39.06 | 1,946 EUR | -1,249 |
| S&P 500 | 4 hours | n/a | 724 | 42.82 | 1,153 EUR | -1,038 |
Charts
Top 10 of 24 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SMA Ratio Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false fastma = Average[10](close) slowma = Average[100](close) mrat = fastma / slowma signal = Average[20](mrat)
9 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 22,000 bars.
| Bars available | 22,000 |
| Net, standard 200,000-bar run | 44,626.20 USD |
| Net, long run | 45,028.40 USD |
| Net on the older data alone | 402.20 USD |
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 24 market and timeframe combinations. The best run was Nikkei 225, 4 hours, with a profit factor of 1.51 over 538 trades.
The best run had a maximum drawdown of 9,148 USD at the tested position size, against a net result of 44,626 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.