Buys 1 contract when the smoothed RSI moves above the QQE trailing line. Closes the long when the trailing line moves back above the smoothed RSI.
Best run of 16. USD/JPY, 1 hour, spread 1, from run sweeps:2026-10-04-USDJPY-1h-opt.tsv:33.
| Period | Up to 2026-10-04 |
| Instrument | USD/JPY, 1 hour |
| 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 | 1 hour | n/a | 4,140 | 42.44 | 423,420 USD | -261,700 |
| USD/JPY | Daily | n/a | 397 | 44.08 | 578,300 USD | -537,500 |
| USD/JPY | 4 hours | n/a | 1,087 | 44.62 | 454,080 USD | -253,780 |
| Dow Jones | Daily | n/a | 457 | 47.92 | 24,401 EUR | -11,053 |
| Nikkei 225 | 4 hours | n/a | 786 | 44.15 | 19,786 USD | -11,400 |
| DAX 40 | 1 hour | n/a | 3,290 | 42.04 | 16,293 EUR | -4,459 |
| DAX 40 | Daily | n/a | 482 | 45.64 | 14,295 EUR | -5,729 |
| Nasdaq 100 | 1 hour | n/a | 3,631 | 40.37 | 13,383 EUR | -5,426 |
| Dow Jones | 1 hour | n/a | 1,192 | 43.20 | 12,551 EUR | -9,817 |
| DAX 40 | 4 hours | n/a | 941 | 46.01 | 10,878 EUR | -3,457 |
| Nasdaq 100 | 4 hours | n/a | 991 | 44.40 | 8,954 EUR | -5,110 |
| Dow Jones | 4 hours | n/a | 313 | 41.85 | 8,132 EUR | -7,737 |
| Nasdaq 100 | Daily | n/a | 355 | 44.23 | 7,513 EUR | -4,511 |
| Gold | Daily | n/a | 429 | 45.45 | 2,255 EUR | -1,631 |
| Gold | 4 hours | n/a | 960 | 45.10 | 1,981 EUR | -1,307 |
| S&P 500 | Daily | n/a | 499 | 41.88 | 1,489 EUR | -1,120 |
Charts
Top 10 of 16 runs. The full list is in the table above.
The code
// ============================================================== // QQE Trailing Line Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE longband = 0 ONCE shortband = 0 ONCE trend = 1 ONCE cntlong = 0 ONCE cntshort = 0 myRsi = RSI[14](close) rsima = ExponentialAverage[5](myRsi) atrrsi = ABS(rsima[1] - rsima) maatr = ExponentialAverage[27](atrrsi) dar = ExponentialAverage[27](maatr) * 4.238 newshort = rsima + dar newlong = rsima - dar prevlong = longband[1] prevshort = shortband[1]
43 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 16 market and timeframe combinations. The best run by trade count was USD/JPY, 1 hour, with 4,140 trades.
The best run had a maximum drawdown of 261,700 USD at the tested position size, against a net result of 423,420 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.