Buys 1 contract when the 14 period RSI is below 30 during an uptrend, where the 11 period SMA is above the 21 period SMA and the close is above both. Sells the long when the RSI is above 70 and the trend turns down.
Best run of 1. USD/JPY, 3 min, spread 1, from run sweeps:2026-10-04-USDJPY-3m-opt.tsv:9.
| Period | Up to 2026-10-04 |
| Instrument | USD/JPY, 3 minutes |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 3 min | n/a | 1 | 100.00 | 125,420 USD | -110,410 |
Charts
The code
// ============================================================== // RSI Pullback With Trend Filter (long only) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false smaone = Average[11](close) smatwo = Average[21](close) mom = close - close[30] myRsi = RSI[14](close)
13 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, 3 minutes, with 1 trades.
The best run had a maximum drawdown of 110,410 USD at the tested position size, against a net result of 125,420 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.