Enters long when the 89-period SMA is higher than 5 bars ago, ADX(14) is above 20 and +DI is above -DI, and short on the mirror conditions. Each trade has a 0.5% stop and a 1.0% target, and a slope reversal closes the position.
Best run of 8. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-04-USDJPY-30m-opt.tsv:91.
| Period | Up to 2026-10-04 |
| Instrument | USD/JPY, 30 minutes |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 30 min | n/a | 3,327 | 33.30 | 544,920 USD | -170,090 |
| USD/JPY | 15 min | n/a | 3,051 | 32.35 | 430,030 USD | -131,970 |
| USD/JPY | 10 min | n/a | 3,039 | 32.44 | 419,770 USD | -131,000 |
| USD/JPY | 1 hour | n/a | 3,016 | 33.26 | 330,110 USD | -265,370 |
| USD/JPY | Daily | n/a | 458 | 36.46 | 249,000 USD | -126,670 |
| Dow Jones | Daily | n/a | 465 | 28.82 | 5,274 EUR | -2,352 |
| Dow Jones | 4 hours | n/a | 342 | 35.96 | 4,369 EUR | -4,038 |
| GBP/USD | Daily | n/a | 455 | 36.48 | 3,470 USD | -1,692 |
Charts
The code
// ============================================================== // SMA Slope With ADX DI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false smasig = Average[89](close)
32 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 8 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 3,327 trades.
The best run had a maximum drawdown of 170,090 USD at the tested position size, against a net result of 544,920 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.