The system buys when a stochastic-based close reversal agrees with a positive difference between the 14-period and 28-period exponential averages of the median price, and sells short on the negative mirror. Positions close when the states disagree.
Best run of 16. USD/JPY, Daily, spread 1, from run pf:2026-10-13-USDJPY-D.tsv:2.
| 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.79 | 263 | 37.26 | 2,862,200 USD | -514,090 |
| USD/JPY | 30 min | n/a | 4,063 | 32.32 | 524,490 USD | -240,990 |
| USD/JPY | 10 min | n/a | 4,232 | 30.08 | 348,440 USD | -201,280 |
| USD/JPY | 1 hour | n/a | 2,858 | 33.45 | 317,900 USD | -291,380 |
| EUR/USD | Daily | n/a | 264 | 34.47 | 69,124 USD | -65,851 |
| Nikkei 225 | Daily | n/a | 232 | 34.91 | 34,468 USD | -18,466 |
| Brent Crude | Daily | n/a | 104 | 35.58 | 14,684 EUR | -9,134 |
| US Crude Oil | Daily | n/a | 228 | 35.53 | 11,719 EUR | -8,837 |
| DAX 40 | 30 min | n/a | 4,167 | 32.49 | 10,084 EUR | -6,987 |
| US Crude Oil | 1 hour | n/a | 1,865 | 34.26 | 5,831 EUR | -5,720 |
| GBP/USD | 1 hour | n/a | 3,594 | 33.75 | 4,685 USD | -4,639 |
| Gold | Daily | n/a | 273 | 35.90 | 2,200 EUR | -1,061 |
| Gold | 1 hour | n/a | 2,494 | 32.28 | 1,949 EUR | -1,085 |
| Gold | 4 hours | n/a | 635 | 33.23 | 1,838 EUR | -780 |
| S&P 500 | Daily | n/a | 308 | 31.17 | 1,614 EUR | -1,288 |
| Gold | 30 min | n/a | 4,145 | 31.31 | 1,485 EUR | -989 |
Charts
Top 10 of 16 runs. The full list is in the table above.
The code
// ============================================================== // Reversal Pattern With Detrended Synthetic Price // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE kraw = 50 ONCE posrev = 0 ONCE posb = 0 hh = highest[14](high) ll = lowest[14](low)
40 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 16 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.79 over 263 trades.
The best run had a maximum drawdown of 514,090 USD at the tested position size, against a net result of 2,862,200 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.