The strategy buys when a cyclic smoothed RSI rises back above a lower band calculated from its recent 40-bar range. It closes when the line falls below an upper band or the lower band.
Best run of 11. USD/JPY, 4 hours, spread 1, from run pf:2026-10-12-USDJPY-4h.tsv:3.
| Period | Up to 2026-10-13 |
| Instrument | USD/JPY, 4 hours |
| 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 | 4 hours | 1.21 | 1,128 | 46.45 | 845,770 USD | -172,590 |
| Dow Jones | Daily | n/a | 462 | 48.27 | 24,887 EUR | -8,800 |
| Silver | 4 hours | n/a | 928 | 43.43 | 22,870 USD | -16,525 |
| Nikkei 225 | 4 hours | n/a | 796 | 45.73 | 20,181 USD | -13,882 |
| Dow Jones | 1 hour | n/a | 1,227 | 43.60 | 13,722 EUR | -6,482 |
| DAX 40 | 4 hours | n/a | 965 | 44.97 | 9,588 EUR | -4,559 |
| Nasdaq 100 | 4 hours | n/a | 975 | 44.31 | 9,398 EUR | -5,133 |
| DAX 40 | Daily | n/a | 464 | 44.40 | 6,972 EUR | -5,224 |
| FTSE 100 | Daily | n/a | 373 | 49.33 | 5,695 EUR | -2,570 |
| Gold | 4 hours | n/a | 940 | 45.21 | 1,941 EUR | -1,139 |
| Gold | Daily | n/a | 420 | 44.52 | 1,903 EUR | -1,086 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Cyclic Smoothed RSI Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE crsi = 0 ONCE db = 0 ONCE ub = 0
73 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 11 market and timeframe combinations. The best run was USD/JPY, 4 hours, with a profit factor of 1.21 over 1,128 trades.
The best run had a maximum drawdown of 172,590 USD at the tested position size, against a net result of 845,770 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.