Buys when a smoothed MACD line turns up with RSI(14) below 90. Sells short when it turns down with RSI(14) above 44, and each opposite turn reverses the position.
Best run of 13. Silver, 1 hour, spread 2, from run pf:2026-10-12-SILVER-1h.tsv:9.
| Period | Up to 2026-10-12 |
| Instrument | Silver, 1 hour |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| SilverBest run | 1 hour | 2.60 | 5,812 | 50.14 | 609,516 USD | -21,893 |
| S&P 500 | Daily | 1.40 | 778 | 52.57 | 4,690 EUR | -875 |
| Gold | Daily | 1.36 | 649 | 53.31 | 3,071 EUR | -605 |
| Nikkei 225 | 4 hours | n/a | 1,245 | 52.77 | 34,709 USD | -12,545 |
| Nikkei 225 | Daily | n/a | 573 | 54.62 | 29,376 USD | -14,454 |
| Dow Jones | Daily | n/a | 727 | 54.88 | 21,287 EUR | -7,564 |
| Silver | Daily | n/a | 573 | 51.66 | 21,087 USD | -18,107 |
| Dow Jones | 1 hour | n/a | 2,047 | 52.32 | 14,293 EUR | -14,245 |
| Dow Jones | 4 hours | n/a | 493 | 51.12 | 11,719 EUR | -9,387 |
| Nasdaq 100 | 4 hours | n/a | 1,594 | 50.31 | 9,820 EUR | -5,868 |
| DAX 40 | 1 hour | n/a | 5,606 | 52.68 | 9,726 EUR | -4,722 |
| DAX 40 | 4 hours | n/a | 1,516 | 53.69 | 9,488 EUR | -4,893 |
| FTSE 100 | Daily | n/a | 599 | 54.26 | 4,964 EUR | -3,116 |
Charts
Top 10 of 13 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Smoothed MACD Turn With RSI // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false macdraw = ExponentialAverage[12](close) - ExponentialAverage[26](close) haa = 2 * WeightedAverage[18](macdraw) - WeightedAverage[36](macdraw) ha = WeightedAverage[6](haa) hba = 2 * WeightedAverage[18](ha) - WeightedAverage[36](ha) hb = WeightedAverage[6](hba) hca = 2 * WeightedAverage[18](hb) - WeightedAverage[36](hb) hc = WeightedAverage[6](hca) thma = 3 * ha - hc lr = LinearRegression[10](thma) - LinearRegressionSlope[10](thma) chg = lr - lr[1] myRsi = RSI[14](close)
19 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 13 market and timeframe combinations. The best run was Silver, 1 hour, with a profit factor of 2.60 over 5,812 trades.
The best run had a maximum drawdown of 21,893 USD at the tested position size, against a net result of 609,516 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.