It buys when price flips above the Parabolic SAR and stays above the 100-period EMA, with a candle body above its 100-period standard deviation and rising momentum. It closes the long when price falls below the SAR.
Best run of 15. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:62.
| 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.77 | 185 | 48.65 | 1,172,030 USD | -195,620 |
| USD/JPY | 1 hour | n/a | 2,000 | 41.95 | 268,020 USD | -184,580 |
| USD/JPY | 30 min | n/a | 2,850 | 41.05 | 234,080 USD | -151,870 |
| Silver | 4 hours | n/a | 426 | 43.66 | 29,222 USD | -8,352 |
| Nikkei 225 | 4 hours | n/a | 409 | 44.01 | 11,912 USD | -9,023 |
| Nikkei 225 | Daily | n/a | 170 | 44.12 | 9,611 USD | -8,039 |
| Nasdaq 100 | 30 min | n/a | 3,157 | 42.10 | 6,413 EUR | -3,134 |
| Nasdaq 100 | 4 hours | n/a | 541 | 45.29 | 6,077 EUR | -2,497 |
| Brent Crude | Daily | n/a | 76 | 48.68 | 5,770 EUR | -4,185 |
| DAX 40 | 1 hour | n/a | 1,681 | 42.36 | 3,688 EUR | -3,055 |
| Brent Crude | 1 hour | n/a | 1,002 | 42.51 | 3,363 EUR | -2,185 |
| Gold | 4 hours | n/a | 442 | 46.15 | 1,855 EUR | -592 |
| Gold | Daily | n/a | 191 | 47.12 | 983 EUR | -821 |
| S&P 500 | Daily | n/a | 293 | 46.08 | 962 EUR | -939 |
| Gold | 1 hour | n/a | 1,739 | 41.40 | 571 EUR | -479 |
Charts
Top 10 of 15 runs. The full list is in the table above.
The code
// ============================================================== // Parabolic SAR Flip Momentum // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE lastcheck = -1000 mySar = SAR[0.02, 0.02, 0.2]
21 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 15 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.77 over 185 trades.
The best run had a maximum drawdown of 195,620 USD at the tested position size, against a net result of 1,172,030 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.