The strategy buys when price is above Parabolic SAR and SMA(50), with MACD and RSI(7) confirming, and only when Choppiness(7) is below 50. It sells short on the mirror conditions, with a 3% stop and target from entry.
Best run of 8. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:27.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.28 | 689 | 47.17 | 2,936,590 USD | -682,110 |
| EUR/USD | Daily | 1.26 | 637 | 47.41 | 201,829 USD | -41,577 |
| Gold | 4 hours | 1.16 | 1,228 | 40.80 | 3,031 EUR | -747 |
| USD/JPY | 30 min | n/a | 4,845 | 32.49 | 642,920 USD | -206,360 |
| USD/JPY | 1 hour | n/a | 3,527 | 33.43 | 367,830 USD | -295,510 |
| Silver | 4 hours | n/a | 1,873 | 46.82 | 38,322 USD | -14,742 |
| Gold | 1 hour | n/a | 3,466 | 33.21 | 3,243 EUR | -1,063 |
| Gold | Daily | n/a | 1,149 | 47.17 | 1,329 EUR | -1,049 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Parabolic SAR Trend Confirmation // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE ci = 100 psar = SAR[0.02, 0.02, 0.2] mm = Average[50](close) myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close) myRsi = RSI[7](close) rng = highest[7](high) - lowest[7](low)
20 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 was USD/JPY, Daily, with a profit factor of 1.28 over 689 trades.
The best run had a maximum drawdown of 682,110 USD at the tested position size, against a net result of 2,936,590 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.