The strategy buys when the slope of a 50-period linear regression line is positive and its smoothed change in slope is positive, and sells short on the mirror condition. Positions close when the smoothed slope change turns against them.
Best run of 7. USD/JPY, Daily, spread 1, from run pf:2026-10-10-USDJPY-D.tsv:6.
| Period | Up to 2026-10-10 |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.41 | 550 | 39.64 | 2,159,870 USD | -483,600 |
| USD/JPY | 30 min | n/a | 8,263 | 36.77 | 405,670 USD | -239,890 |
| USD/JPY | 1 hour | n/a | 5,743 | 38.55 | 301,810 USD | -244,680 |
| EUR/USD | Daily | n/a | 552 | 40.76 | 121,390 USD | -59,488 |
| Silver | Daily | n/a | 543 | 33.89 | 23,744 USD | -21,835 |
| GBP/USD | Daily | n/a | 613 | 42.25 | 17,014 USD | -6,066 |
| Gold | 1 hour | n/a | 4,749 | 36.26 | 934 EUR | -842 |
Charts
The code
// ============================================================== // Linear Regression Slope Acceleration // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false slope = LinearRegressionSlope[50](close) accel = slope - slope[1] sacc = ExponentialAverage[3](accel)
20 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,159,870.00 USD |
| Net, long run | 2,159,870.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 7 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.41 over 550 trades.
The best run had a maximum drawdown of 483,600 USD at the tested position size, against a net result of 2,159,870 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.