Buys on a momentum pivot high while +DI is falling, or on a +DI pivot high while momentum is negative and rising. Closes the long on separate momentum and +DI exit signals, with a stop 1.6 times ATR(14) below the entry.
Best run of 9. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:1.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 9.58 | 1,606 | 4.42 | 2,383,220 USD | -167,590 |
| Dow Jones | 1 hour | n/a | 2,329 | 40.36 | 18,722 EUR | -10,157 |
| Dow Jones | Daily | n/a | 834 | 43.53 | 13,058 EUR | -6,385 |
| Dow Jones | 4 hours | n/a | 601 | 41.43 | 12,434 EUR | -6,140 |
| DAX 40 | Daily | n/a | 975 | 39.18 | 11,995 EUR | -4,822 |
| Nasdaq 100 | 4 hours | n/a | 1,879 | 40.39 | 8,857 EUR | -4,230 |
| Nasdaq 100 | Daily | n/a | 689 | 36.43 | 8,839 EUR | -4,189 |
| Brent Crude | 4 hours | n/a | 1,037 | 40.60 | 6,547 EUR | -2,969 |
| FTSE 100 | Daily | n/a | 711 | 44.44 | 4,388 EUR | -3,052 |
Charts
The code
// ============================================================== // Linear Regression Momentum Pivot // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false mom = close - ((highest[20](high) + lowest[20](low)) / 2 + Average[20](close)) / 2 sz = LinearRegression[20](mom) di = DIplus[14](close) myAtr = AverageTrueRange[14](close)
17 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 2,383,220.00 USD |
| Net, long run | 2,383,220.00 USD |
| Net on the older data alone | 0.00 USD |
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 9 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 9.58 over 1,606 trades.
The best run had a maximum drawdown of 167,590 USD at the tested position size, against a net result of 2,383,220 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.