Buys when a reversal pattern on closing prices and a smoothed stochastic oscillator both point up, and sells short when both point down. Any open position is closed when the two signals disagree.
Best run of 10. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:54.
| 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.67 | 235 | 44.26 | 2,263,860 USD | -483,010 |
| USD/JPY | 1 hour | n/a | 2,314 | 40.75 | 384,390 USD | -239,300 |
| Nikkei 225 | Daily | n/a | 210 | 45.24 | 20,851 USD | -13,508 |
| Brent Crude | Daily | n/a | 94 | 42.55 | 17,260 EUR | -8,682 |
| Nasdaq 100 | Daily | n/a | 207 | 39.61 | 8,249 EUR | -6,998 |
| DAX 40 | 4 hours | n/a | 552 | 42.39 | 6,966 EUR | -5,336 |
| DAX 40 | 30 min | n/a | 3,436 | 39.52 | 6,026 EUR | -5,299 |
| Gold | 1 hour | n/a | 2,061 | 39.01 | 1,872 EUR | -853 |
| Gold | 4 hours | n/a | 552 | 40.58 | 1,739 EUR | -759 |
| Gold | Daily | n/a | 231 | 36.80 | 1,231 EUR | -955 |
Charts
The code
// ============================================================== // Reversal Pattern With Dynamo Oscillator // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE kfast = 0 ONCE kosc = 0 ONCE posrev = 0 ONCE posdyn = 0 ONCE lowsofar = 9999999 ONCE highsofar = 0 rngf = highest[14](high) - lowest[14](low)
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 10 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.67 over 235 trades.
The best run had a maximum drawdown of 483,010 USD at the tested position size, against a net result of 2,263,860 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.