Buys after a lower close when the close sits below 0.7 of the bar's range, and sells short after a higher close when it sits above 0.3. Longs close above 0.9 of the range and shorts close below 0.1.
Best run of 1. USD/JPY, Daily, spread 1.4, from run pf:2026-10-10-USDJPY-D.tsv:38.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| Spread | 1.4 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.26 | 348 | 66.38 | 3,598 USD | -1,651 |
Charts
The code
// ============================================================== // Internal Bar Strength Two-Way Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
26 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 one combination, USD/JPY, Daily, with a profit factor of 1.26 over 348 trades.
The best run had a maximum drawdown of 1,651 USD at the tested position size, against a net result of 3,598 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.