Buys when the 3 SMA is above the 48 SMA and price is above the 168 SMA, and sells short when the reverse holds. Trades close when the fast average crosses back against them.
Best run of 11. USD/JPY, Daily, spread 1, from run pf:2026-10-04-USDJPY-D.tsv:14.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.92 | 399 | 32.83 | 3,388,270 USD | -497,210 |
| EUR/USD | Daily | 1.56 | 348 | 35.06 | 194,023 USD | -34,696 |
| USD/JPY | 30 min | n/a | 5,934 | 28.16 | 695,680 USD | -187,300 |
| USD/JPY | 1 hour | n/a | 4,171 | 28.60 | 517,870 USD | -356,320 |
| Nikkei 225 | Daily | n/a | 348 | 28.74 | 35,709 USD | -27,797 |
| Silver | 4 hours | n/a | 950 | 28.32 | 32,506 USD | -22,601 |
| GBP/USD | Daily | n/a | 420 | 32.14 | 14,998 USD | -9,258 |
| Nasdaq 100 | Daily | n/a | 322 | 30.75 | 13,633 EUR | -4,666 |
| US Crude Oil | Daily | n/a | 348 | 32.47 | 12,651 EUR | -6,980 |
| Gold | Daily | n/a | 435 | 28.28 | 2,450 EUR | -1,114 |
| Gold | 1 hour | n/a | 3,495 | 28.27 | 1,778 EUR | -1,162 |
Charts
Top 10 of 11 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SMA Crossover Trend Long Short // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false maf = Average[3](close) mas = Average[48](close) mat = Average[168](close)
26 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 3,388,270.00 USD |
| Net, long run | 3,389,730.00 USD |
| Net on the older data alone | 1,460.00 USD |
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 11 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.92 over 399 trades.
The best run had a maximum drawdown of 497,210 USD at the tested position size, against a net result of 3,388,270 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.