The system buys when the 7-bar lowest low crosses above the 62-period weighted moving average of the close. It closes the long at a 1% gain or when the lowest low crosses back below that average while the average is not rising.
Best run of 39. Gold, Daily, spread 0.6, from run pf:2026-10-13-GOLD-D.tsv:4.
| Period | Up to 2026-10-13 |
| Instrument | Gold, Daily |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | Daily | 2.97 | 190 | 84.74 | 1,970 EUR | -309 |
| DAX 40 | 1 hour | 1.37 | 873 | 64.60 | 20,221 EUR | -4,237 |
| Dow Jones | 15 min | 1.29 | 770 | 50.26 | 28,762 EUR | -6,523 |
| S&P 500 | 15 min | 1.24 | 972 | 51.13 | 3,706 EUR | -835 |
| Nikkei 225 | 4 hours | n/a | 292 | 76.03 | 31,391 USD | -10,068 |
| Nikkei 225 | 1 hour | n/a | 775 | 66.32 | 31,018 USD | -11,131 |
| Nikkei 225 | 30 min | n/a | 1,358 | 57.14 | 30,080 USD | -10,943 |
| Nikkei 225 | Daily | n/a | 169 | 84.02 | 27,217 USD | -7,603 |
| Nikkei 225 | 5 min | n/a | 856 | 48.36 | 22,621 USD | -12,427 |
| Dow Jones | Daily | n/a | 226 | 87.17 | 21,988 EUR | -11,142 |
| Dow Jones | 1 hour | n/a | 275 | 65.45 | 19,167 EUR | -9,649 |
| Nikkei 225 | 15 min | n/a | 1,105 | 52.85 | 18,506 USD | -13,120 |
| Nikkei 225 | 3 min | n/a | 777 | 46.20 | 17,672 USD | -10,833 |
| Dow Jones | 5 min | n/a | 664 | 42.32 | 17,359 EUR | -5,049 |
| Nikkei 225 | 10 min | n/a | 963 | 50.16 | 16,642 USD | -12,210 |
| Nasdaq 100 | 4 hours | n/a | 377 | 78.51 | 12,609 EUR | -5,773 |
| DAX 40 | 4 hours | n/a | 346 | 76.01 | 12,565 EUR | -7,770 |
| Nasdaq 100 | 10 min | n/a | 885 | 53.90 | 12,115 EUR | -6,240 |
| Nasdaq 100 | 15 min | n/a | 1,056 | 55.59 | 11,119 EUR | -6,768 |
| Nasdaq 100 | 5 min | n/a | 757 | 46.24 | 10,703 EUR | -4,980 |
| Nasdaq 100 | 30 min | n/a | 1,230 | 60.57 | 10,581 EUR | -7,141 |
| Dow Jones | 30 min | n/a | 437 | 55.61 | 9,886 EUR | -9,734 |
| DAX 40 | 5 min | n/a | 716 | 45.95 | 9,810 EUR | -4,144 |
| Nasdaq 100 | 1 hour | n/a | 984 | 65.55 | 8,595 EUR | -7,596 |
| DAX 40 | 15 min | n/a | 959 | 51.82 | 7,677 EUR | -4,654 |
| DAX 40 | 30 min | n/a | 1,139 | 58.82 | 6,787 EUR | -4,426 |
| Nasdaq 100 | 3 min | n/a | 647 | 44.05 | 6,048 EUR | -5,546 |
| S&P 500 | 4 hours | n/a | 354 | 75.42 | 4,142 EUR | -1,077 |
| Brent Crude | 2 min | n/a | 967 | 47.05 | 4,062 EUR | -3,459 |
| FTSE 100 | Daily | n/a | 171 | 84.80 | 3,830 EUR | -3,821 |
| S&P 500 | 10 min | n/a | 829 | 48.85 | 3,335 EUR | -1,722 |
| S&P 500 | 1 hour | n/a | 865 | 61.50 | 3,206 EUR | -1,211 |
| S&P 500 | Daily | n/a | 246 | 85.77 | 3,028 EUR | -1,220 |
| S&P 500 | 30 min | n/a | 1,077 | 56.82 | 2,557 EUR | -1,570 |
| Gold | 1 hour | n/a | 883 | 65.69 | 2,392 EUR | -1,190 |
| S&P 500 | 5 min | n/a | 681 | 43.91 | 2,173 EUR | -1,027 |
| Gold | 4 hours | n/a | 324 | 75.31 | 1,835 EUR | -716 |
| Gold | 15 min | n/a | 878 | 52.28 | 1,571 EUR | -1,329 |
| Gold | 30 min | n/a | 1,080 | 58.15 | 1,193 EUR | -1,072 |
Charts
Top 10 of 39 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Donchian Low WMA Cross With Target // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false donlow = lowest[7](low) wma = WeightedAverage[62](close)
20 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 39 market and timeframe combinations. The best run was Gold, Daily, with a profit factor of 2.97 over 190 trades.
The best run had a maximum drawdown of 309 EUR at the tested position size, against a net result of 1,970 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.