Buys after a sharp sell-off when enough exhaustion factors align, and sells short after a mirrored rally. Positions use a stop at 2 times the 20-bar average true range and a target at 3 times it.
Best run of 2. USD/JPY, Daily, spread 1, from run pf:2026-10-11-USDJPY-D.tsv:3.
| 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 | 1.23 | 1,969 | 44.69 | 66,630 USD | -7,000 |
| FTSE 100 | Daily | n/a | 483 | 39.96 | 3,791 EUR | -3,010 |
Charts
The code
// ============================================================== // Capitulation Fade Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE barsaboveslow = -1 ONCE barsbelowslow = -1 ONCE barsabovefast = -1 ONCE barsbelowfast = -1 ONCE llcount = 0 ONCE hhcount = 0 ONCE lastswinglow = 0 ONCE lastswinghigh = 0 ONCE haslow = 0 ONCE hashigh = 0 slowema = ExponentialAverage[38](close) fastema = ExponentialAverage[5](close) myAtr = AverageTrueRange[20](close) volavg = Average[20](volume) body = abs(close - open) avgbody = Average[10](body)
89 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 was USD/JPY, Daily, with a profit factor of 1.23 over 1,969 trades.
The best run had a maximum drawdown of 7,000 USD at the tested position size, against a net result of 66,630 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.