The system buys on a break above the prior 20-bar high when the close is above the 50-period EMA, RSI(14) is above 50 and ATR exceeds its 20-bar average. Shorts mirror these rules, with a stop 1.5 times the 14-period ATR from entry.
Best run of 5. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:34.
| 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 | 12.47 | 789 | 2.66 | 1,540,180 USD | -125,330 |
| Nikkei 225 | Daily | n/a | 278 | 32.01 | 26,360 USD | -9,017 |
| Brent Crude | Daily | n/a | 123 | 34.15 | 16,497 EUR | -6,901 |
| US Crude Oil | Daily | n/a | 275 | 32.36 | 8,422 EUR | -6,909 |
| DAX 40 | 1 hour | n/a | 3,085 | 29.11 | 4,564 EUR | -3,839 |
Charts
The code
// ============================================================== // Turtle Breakout With RSI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false hh = highest[20](high) ll = lowest[20](low) exitlong = lowest[10](low) myExitshort = highest[10](high) myAtr = AverageTrueRange[14](close) atrsma = Average[20](myAtr) ema = ExponentialAverage[50](close) myRsi = RSI[14](close)
21 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 5 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 12.47 over 789 trades.
The best run had a maximum drawdown of 125,330 USD at the tested position size, against a net result of 1,540,180 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.