Buys when the 34-period and 89-period SMAs are both flat or rising compared with the previous bar, and sells short when both are falling. Each trade has a 0.5% stop and a 1.0% target.
Best run of 7. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:14.
| Period | Up to 2026-10-05 |
| Instrument | USD/JPY, 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 |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.18 | 4,507 | 35.92 | 3,472,090 USD | -278,840 |
| EUR/USD | Daily | 1.12 | 4,133 | 36.05 | 182,256 USD | -29,138 |
| USD/JPY | 30 min | n/a | 5,101 | 29.33 | 512,790 USD | -230,920 |
| USD/JPY | 15 min | n/a | 4,524 | 27.32 | 504,590 USD | -147,890 |
| USD/JPY | 10 min | n/a | 4,539 | 26.15 | 347,380 USD | -159,330 |
| EUR/USD | 3 min | n/a | 4,671 | 22.65 | 48,614 USD | -39,968 |
| GBP/USD | Daily | n/a | 4,229 | 34.93 | 17,200 USD | -7,656 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Dual SMA Slope Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false fast = Average[34](close) slow = Average[89](close)
16 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 7 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.18 over 4,507 trades.
The best run had a maximum drawdown of 278,840 USD at the tested position size, against a net result of 3,472,090 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.