The system goes long when the 48-period SMA crosses above the 144-period SMA while the 16-period SMA is above the 144-period SMA, and short on the mirror conditions. Both require 60-bar range volatility above 1%, and a 10% stop applies from entry.
Best run of 17. Gold, 1 hour, spread 0.6, from run sweeps:2026-10-12-GOLD-1h-opt.tsv:54.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 1 hour |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 1 hour | n/a | 664 | 37.35 | 2,045 EUR | -1,603 |
| Nikkei 225 | Daily | n/a | 74 | 37.84 | 42,995 USD | -18,101 |
| Silver | 2 min | n/a | 523 | 39.77 | 34,925 USD | -15,302 |
| Nasdaq 100 | Daily | n/a | 56 | 42.86 | 18,604 EUR | -5,543 |
| US Crude Oil | 4 hours | n/a | 129 | 41.09 | 14,455 EUR | -9,926 |
| Dow Jones | 30 min | n/a | 319 | 40.75 | 12,765 EUR | -12,426 |
| Dow Jones | Daily | n/a | 84 | 35.71 | 12,577 EUR | -9,941 |
| US Crude Oil | Daily | n/a | 75 | 28.00 | 10,435 EUR | -8,007 |
| Nasdaq 100 | 4 hours | n/a | 192 | 38.54 | 8,206 EUR | -5,898 |
| DAX 40 | 3 min | n/a | 72 | 47.22 | 4,961 EUR | -3,937 |
| Gold | Daily | n/a | 68 | 39.71 | 4,320 EUR | -1,108 |
| S&P 500 | Daily | n/a | 77 | 40.26 | 3,920 EUR | -1,279 |
| Gold | 4 hours | n/a | 195 | 39.49 | 3,211 EUR | -1,063 |
| S&P 500 | 4 hours | n/a | 203 | 39.41 | 2,318 EUR | -1,427 |
| Gold | 15 min | n/a | 404 | 40.10 | 1,639 EUR | -1,205 |
| FTSE 100 | 3 min | n/a | 26 | 30.77 | 1,545 EUR | -989 |
| S&P 500 | 3 min | n/a | 53 | 41.51 | 1,028 EUR | -1,000 |
Charts
Top 10 of 17 runs. The full list is in the table above.
The code
// ============================================================== // SMA Cross With Volatility Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false mashort = Average[16](close) mamid = Average[48](close) malong = Average[144](close) hc = highest[60](close) lc = lowest[60](close) vola = 100 * (hc - lc) / lc
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 17 market and timeframe combinations. The best run by trade count was Gold, 1 hour, with 664 trades.
The best run had a maximum drawdown of 1,603 EUR at the tested position size, against a net result of 2,045 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.