Join waitlist
Strategies / Momentum / Linear Regression Momentum Pivot

Linear Regression Momentum Pivot

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.

MomentumLong onlySwingUSD/JPYDaily
9.58Profit factor
2,383,220Net profit USD
4.42%Win rate
1,606Trades
-167,590Max drawdown
1,484Avg trade

Best run of 9. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:1.

Entry rules, long

  1. Or +DI(14) has a pivot high, momentum is at or above its previous value, and momentum is below 0.
  2. Enter long at market when flat and either set of conditions is met.
  3. A stop loss 1.6 times ATR(14) below the fill price is set on entry.

Exit rules

  1. Or +DI has a pivot high, momentum is falling while positive, and +DI is above 23.

Test conditions

PeriodUp to 2026-10-05
InstrumentUSD/JPY, Daily
Spread1 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-05

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDaily9.58 1,6064.422,383,220 USD-167,590
Dow Jones1 hourn/a 2,32940.3618,722 EUR-10,157
Dow JonesDailyn/a 83443.5313,058 EUR-6,385
Dow Jones4 hoursn/a 60141.4312,434 EUR-6,140
DAX 40Dailyn/a 97539.1811,995 EUR-4,822
Nasdaq 1004 hoursn/a 1,87940.398,857 EUR-4,230
Nasdaq 100Dailyn/a 68936.438,839 EUR-4,189
Brent Crude4 hoursn/a 1,03740.606,547 EUR-2,969
FTSE 100Dailyn/a 71144.444,388 EUR-3,052

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// 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

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

Linear RegressionDMISMAATR
Longer historyRe-run on up to 1,000,000 barsUSD/JPY · Daily · older data 0.00 USD

USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.

USD/JPY · Daily

Bars available12,000
Net, standard 200,000-bar run2,383,220.00 USD
Net, long run2,383,220.00 USD
Net on the older data alone0.00 USD
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Linear Regression Momentum Pivot in ProOrder?

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.

Which markets was it tested on?

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.

How large was the drawdown?

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.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 trades

MACD Histogram Zero Cross Reversal

Also a momentum strategy.

9.12 PF · 893 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs