Builds an oscillator from a moving average trend measure and a rate of change momentum measure, then smooths it. Buys when the smoothed value crosses above 30 and sells when it falls below -10.
Best run of 41. Silver, 30 min, spread 2, from run sweeps:2026-10-04-SILVER-30m-opt.tsv:30.
| Period | Up to 2026-10-04 |
| Instrument | Silver, 30 minutes |
| Spread | 2 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 |
|---|---|---|---|---|---|---|
| SilverBest run | 30 min | n/a | 753 | 34.79 | 16,000 USD | -13,128 |
| USD/JPY | Daily | n/a | 59 | 38.98 | 1,069,290 USD | -584,360 |
| USD/JPY | 4 hours | n/a | 140 | 43.57 | 420,020 USD | -241,630 |
| USD/JPY | 10 min | n/a | 380 | 42.63 | 117,230 USD | -115,240 |
| EUR/USD | Daily | n/a | 59 | 40.68 | 56,961 USD | -34,977 |
| USD/JPY | 3 min | n/a | 192 | 42.19 | 51,900 USD | -22,650 |
| Nikkei 225 | Daily | n/a | 61 | 40.98 | 35,162 USD | -12,935 |
| Nasdaq 100 | Daily | n/a | 59 | 57.63 | 20,680 EUR | -3,380 |
| Nikkei 225 | 1 hour | n/a | 417 | 39.57 | 17,085 USD | -10,518 |
| Silver | 10 min | n/a | 663 | 36.95 | 15,599 USD | -7,832 |
| Dow Jones | Daily | n/a | 84 | 45.24 | 14,188 EUR | -8,304 |
| Nikkei 225 | 10 min | n/a | 595 | 40.50 | 11,050 USD | -6,798 |
| Dow Jones | 4 hours | n/a | 51 | 52.94 | 10,494 EUR | -7,475 |
| Silver | 2 min | n/a | 554 | 40.97 | 9,990 USD | -9,573 |
| DAX 40 | Daily | n/a | 72 | 47.22 | 9,474 EUR | -5,389 |
| DAX 40 | 4 hours | n/a | 156 | 41.03 | 8,416 EUR | -2,697 |
| Nasdaq 100 | 4 hours | n/a | 168 | 42.26 | 8,369 EUR | -4,401 |
| DAX 40 | 1 hour | n/a | 463 | 41.04 | 7,088 EUR | -3,705 |
| Nikkei 225 | 3 min | n/a | 454 | 36.56 | 6,947 USD | -6,664 |
| GBP/USD | Daily | n/a | 57 | 45.61 | 6,843 USD | -5,597 |
| Nasdaq 100 | 1 hour | n/a | 549 | 38.98 | 6,621 EUR | -3,900 |
| US Crude Oil | Daily | n/a | 58 | 43.10 | 6,154 EUR | -5,673 |
| Dow Jones | 1 hour | n/a | 158 | 39.87 | 5,941 EUR | -5,846 |
| Dow Jones | 30 min | n/a | 268 | 39.93 | 4,765 EUR | -4,588 |
| S&P 500 | Daily | n/a | 76 | 44.74 | 4,722 EUR | -1,110 |
| Nasdaq 100 | 5 min | n/a | 446 | 43.72 | 3,883 EUR | -1,782 |
| DAX 40 | 30 min | n/a | 717 | 39.47 | 3,874 EUR | -3,045 |
| Gold | Daily | n/a | 66 | 40.91 | 2,934 EUR | -1,490 |
| FTSE 100 | 4 hours | n/a | 129 | 49.61 | 2,854 EUR | -1,293 |
| Gold | 30 min | n/a | 651 | 42.70 | 2,532 EUR | -789 |
| Dow Jones | 5 min | n/a | 336 | 40.18 | 2,439 EUR | -2,047 |
| Gold | 1 hour | n/a | 480 | 41.25 | 1,816 EUR | -895 |
| S&P 500 | 4 hours | n/a | 167 | 43.71 | 1,783 EUR | -772 |
| Gold | 15 min | n/a | 576 | 40.80 | 1,631 EUR | -464 |
| Gold | 4 hours | n/a | 153 | 35.29 | 1,387 EUR | -962 |
| DAX 40 | 5 min | n/a | 322 | 41.93 | 1,292 EUR | -1,193 |
| DAX 40 | 2 min | n/a | 212 | 35.85 | 1,157 EUR | -998 |
| Gold | 10 min | n/a | 531 | 40.11 | 1,076 EUR | -510 |
| Gold | 3 min | n/a | 421 | 38.95 | 858 EUR | -255 |
| Gold | 5 min | n/a | 487 | 36.96 | 731 EUR | -395 |
| Gold | 2 min | n/a | 374 | 39.04 | 567 EUR | -333 |
Charts
Top 10 of 41 runs. The full list is in the table above.
The code
// ============================================================== // Smoothed Trend Momentum Oscillator // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE osc = 0 ONCE oscsmooth = 0 wsum = 0 norm = 0 FOR myK = 0 TO 23 DO myW = exp(-1 * square(myK - 19) / (2 * 16)) wsum = wsum + close[23 - myK] * myW norm = norm + myW NEXT alma = wsum / norm volsum = summation[120](volume)
42 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 41 market and timeframe combinations. The best run by trade count was Silver, 30 minutes, with 753 trades.
The best run had a maximum drawdown of 13,128 USD at the tested position size, against a net result of 16,000 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.