Buys when a reversal pattern on closing prices and an Ergodic Candlestick Oscillator both point up, and sells short when both point down. Any open position is closed when the two signals disagree.
Best run of 12. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:56.
| 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.85 | 258 | 36.82 | 2,958,900 USD | -417,910 |
| USD/JPY | 30 min | n/a | 4,229 | 30.79 | 573,300 USD | -270,030 |
| USD/JPY | 10 min | n/a | 4,301 | 30.02 | 359,610 USD | -218,180 |
| USD/JPY | 15 min | n/a | 4,294 | 30.23 | 223,240 USD | -216,770 |
| Nikkei 225 | Daily | n/a | 246 | 34.15 | 26,219 USD | -23,326 |
| Brent Crude | Daily | n/a | 107 | 35.51 | 12,719 EUR | -10,607 |
| US Crude Oil | Daily | n/a | 223 | 34.08 | 12,284 EUR | -8,594 |
| DAX 40 | 30 min | n/a | 4,143 | 31.11 | 9,390 EUR | -5,600 |
| Gold | Daily | n/a | 279 | 36.20 | 2,283 EUR | -980 |
| Gold | 1 hour | n/a | 2,580 | 31.47 | 2,010 EUR | -993 |
| Gold | 30 min | n/a | 4,041 | 29.70 | 1,289 EUR | -1,104 |
| Gold | 4 hours | n/a | 659 | 34.14 | 1,241 EUR | -1,063 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // Reversal With Ergodic Candlestick Oscillator // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE poseco = 0 ll = lowest[14](low) hh = highest[14](high)
56 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 12 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.85 over 258 trades.
The best run had a maximum drawdown of 417,910 USD at the tested position size, against a net result of 2,958,900 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.