The system buys when a stochastic-based close reversal agrees with the close trading above the first resistance level from the prior daily bar, and sells short when the close is below the first support level. Positions close when the states disagree.
Best run of 13. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:61.
| 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.21 | 1,506 | 37.98 | 1,874,810 USD | -414,150 |
| USD/JPY | 30 min | n/a | 2,242 | 36.44 | 631,390 USD | -218,920 |
| USD/JPY | 1 hour | n/a | 2,173 | 37.05 | 609,260 USD | -234,240 |
| USD/JPY | 10 min | n/a | 1,583 | 38.66 | 542,550 USD | -144,380 |
| USD/JPY | 15 min | n/a | 1,766 | 35.84 | 357,430 USD | -175,590 |
| Silver | 4 hours | n/a | 1,201 | 34.05 | 35,598 USD | -12,399 |
| US Crude Oil | 1 hour | n/a | 1,491 | 38.63 | 11,306 EUR | -3,757 |
| US Crude Oil | 30 min | n/a | 2,156 | 37.29 | 10,127 EUR | -4,823 |
| DAX 40 | 30 min | n/a | 2,626 | 35.26 | 8,672 EUR | -6,016 |
| US Crude Oil | 15 min | n/a | 1,942 | 37.33 | 5,944 EUR | -4,737 |
| Gold | 4 hours | n/a | 1,174 | 37.90 | 2,062 EUR | -658 |
| Gold | 1 hour | n/a | 2,060 | 36.89 | 1,379 EUR | -1,303 |
| Gold | 30 min | n/a | 2,419 | 35.97 | 1,260 EUR | -757 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Reversal Pattern With Daily Pivot Levels // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE postwo = 0 ll = lowest[14](low) hh = highest[14](high)
54 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 13 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.21 over 1,506 trades.
The best run had a maximum drawdown of 414,150 USD at the tested position size, against a net result of 1,874,810 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.