The strategy buys at market when the stochastic reversal state is bullish and the cumulative accumulation line is above its 14-bar average, and sells short when both are bearish with the line below that average. Positions close when the two states disagree.
Best run of 2. USD/JPY, Daily, spread 1, from run sweeps:2026-10-11-USDJPY-D-opt.tsv:83.
| Period | Up to 2026-10-11 |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | n/a | 972 | 29.01 | 1,620,650 USD | -730,000 |
| Nikkei 225 | Daily | n/a | 775 | 34.71 | 29,090 USD | -16,122 |
Charts
The code
// ============================================================== // Stochastic Reversal With Accumulation Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE postwo = 0 ONCE wad = 0 ll = lowest[14](low) hh = highest[14](high)
58 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 2 market and timeframe combinations. The best run by trade count was USD/JPY, Daily, with 972 trades.
The best run had a maximum drawdown of 730,000 USD at the tested position size, against a net result of 1,620,650 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.