The strategy holds a long while 18 bar momentum is positive and rising, and a short while it is negative and falling. Each trade has a fixed stop 8% from a long entry or 7% from a short entry.
Best run of 6. USD/JPY, Daily, spread 1, from run pf:2026-10-11-USDJPY-D.tsv:5.
| Period | Up to 2026-10-11 |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.35 | 1,324 | 34.67 | 3,171,440 USD | -441,300 |
| USD/JPY | 1 hour | n/a | 14,717 | 30.79 | 613,870 USD | -434,400 |
| EUR/USD | Daily | n/a | 1,328 | 34.49 | 114,054 USD | -81,882 |
| Brent Crude | Daily | n/a | 555 | 34.05 | 16,250 EUR | -8,640 |
| Nasdaq 100 | Daily | n/a | 1,082 | 31.70 | 13,456 EUR | -7,322 |
| Gold | Daily | n/a | 1,437 | 31.66 | 2,180 EUR | -995 |
Charts
The code
// ============================================================== // 18 Bar Momentum Stop Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false mom = close - close[18] momchg = mom - mom[1]
14 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 6 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.35 over 1,324 trades.
The best run had a maximum drawdown of 441,300 USD at the tested position size, against a net result of 3,171,440 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.