Buys when the 10-period SMA crosses above the 13-period SMA and sells short when it crosses below, with each signal reversing the position. A 1% stop sits from the entry price on both sides, and no target is set.
Best run of 7. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:68.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.27 | 1,365 | 37.66 | 2,491,420 USD | -422,610 |
| Silver | 1 hour | n/a | 12,544 | 30.17 | 457,773 USD | -125,963 |
| EUR/USD | 3 min | n/a | 21,023 | 29.42 | 391,729 USD | -160,177 |
| GBP/USD | Daily | n/a | 1,378 | 39.26 | 21,643 USD | -6,593 |
| Dow Jones | Daily | n/a | 1,456 | 24.66 | 16,613 EUR | -8,175 |
| Brent Crude | Daily | n/a | 525 | 20.57 | 13,288 EUR | -3,950 |
| Gold | 4 hours | n/a | 3,159 | 38.43 | 1,173 EUR | -1,025 |
Charts
The code
// ============================================================== // SMA Crossover Reversal Stop // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false fast = Average[10](close) slow = Average[13](close)
12 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.27 over 1,365 trades.
The best run had a maximum drawdown of 422,610 USD at the tested position size, against a net result of 2,491,420 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.