Buys when ADX(15) is above 30 while flat, with no direction filter. Sells the long when ADX(15) falls below 20.
Best run of 28. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:5.
| Period | Up to 2026-10-05 |
| Instrument | S&P 500, Daily |
| Spread | 1 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 |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 4.98 | 111 | 64.86 | 4,329 EUR | -907 |
| Gold | Daily | 3.90 | 120 | 64.17 | 3,531 EUR | -809 |
| USD/JPY | 4 hours | n/a | 308 | 58.44 | 333,390 USD | -228,580 |
| Nikkei 225 | Daily | n/a | 89 | 60.67 | 49,647 USD | -14,688 |
| Silver | Daily | n/a | 96 | 55.21 | 36,339 USD | -25,287 |
| Dow Jones | Daily | n/a | 116 | 69.83 | 33,369 EUR | -8,615 |
| Nikkei 225 | 1 hour | n/a | 844 | 53.55 | 21,058 USD | -13,868 |
| Nikkei 225 | 4 hours | n/a | 208 | 58.65 | 20,642 USD | -12,817 |
| Nikkei 225 | 10 min | n/a | 1,602 | 51.56 | 17,541 USD | -17,089 |
| Nasdaq 100 | Daily | n/a | 91 | 58.24 | 14,702 EUR | -4,334 |
| Nikkei 225 | 5 min | n/a | 1,573 | 50.54 | 13,772 USD | -12,716 |
| DAX 40 | Daily | n/a | 99 | 60.61 | 12,709 EUR | -3,924 |
| Dow Jones | 1 hour | n/a | 317 | 51.42 | 11,504 EUR | -6,729 |
| Dow Jones | 30 min | n/a | 647 | 54.40 | 11,352 EUR | -8,035 |
| Nasdaq 100 | 4 hours | n/a | 286 | 60.49 | 10,389 EUR | -5,322 |
| Nasdaq 100 | 15 min | n/a | 1,598 | 54.01 | 10,156 EUR | -4,252 |
| DAX 40 | 4 hours | n/a | 249 | 59.04 | 7,478 EUR | -6,401 |
| Brent Crude | 4 hours | n/a | 150 | 58.00 | 6,909 EUR | -5,453 |
| FTSE 100 | Daily | n/a | 80 | 65.00 | 6,889 EUR | -1,946 |
| Nasdaq 100 | 10 min | n/a | 1,546 | 53.10 | 6,806 EUR | -6,291 |
| Dow Jones | 3 min | n/a | 1,473 | 51.87 | 6,598 EUR | -4,904 |
| Nasdaq 100 | 30 min | n/a | 1,445 | 54.19 | 6,071 EUR | -4,193 |
| Dow Jones | 5 min | n/a | 1,501 | 49.37 | 4,502 EUR | -4,482 |
| S&P 500 | 30 min | n/a | 1,509 | 55.27 | 3,358 EUR | -957 |
| Gold | 4 hours | n/a | 274 | 51.46 | 2,116 EUR | -1,331 |
| S&P 500 | 4 hours | n/a | 265 | 58.49 | 1,724 EUR | -1,680 |
| S&P 500 | 1 hour | n/a | 1,067 | 53.98 | 1,712 EUR | -1,240 |
| Gold | 3 min | n/a | 1,550 | 52.32 | 1,454 EUR | -1,068 |
Charts
Top 10 of 28 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // ADX Strength Threshold Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myAdx = ADX[15]
9 more lines: the entry and exit rules.
Setup
S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 4,329.08 EUR |
| Net, long run | 4,329.08 EUR |
| Net on the older data alone | 0.00 EUR |
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 28 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 4.98 over 111 trades.
The best run had a maximum drawdown of 907 EUR at the tested position size, against a net result of 4,329 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.