Join waitlist
Strategies / Momentum / Linear Regression Money Flow Momentum

Linear Regression Money Flow Momentum

The strategy buys when a linear regression momentum line crosses above zero while a money flow reading is positive, and sells short on the mirror cross. Each trade has a stop and target set at 50 percent from the entry price.

MomentumLong & shortIntradayGold15 min
n/aProfit factor
1,071Net profit EUR
34.20%Win rate
2,231Trades
-1,055Max drawdown
0.48Avg trade

Best run of 9. Gold, 15 min, spread 0.6, from run sweeps:2026-10-07-GOLD-15m-opt.tsv:21.

Entry rules, long

  1. The money flow reading is above 0, using 58-bar sums of volume times typical price.
  2. A long position opens at market when these conditions hold and no long position is open.

Entry rules, short

  1. The money flow reading is below 0.
  2. A short position opens at market when these conditions hold and no short position is open.

Exit rules

  1. A stop sits at 50 percent from the entry price on each new trade.
  2. A target sits at 50 percent profit from the entry price.

Test conditions

PeriodUp to 2026-10-07
InstrumentGold, 15 minutes
Spread0.6 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-10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run15 minn/a 2,23134.201,071 EUR-1,055
USD/JPY1 hourn/a 1,40838.211,066,280 USD-350,250
Nikkei 2252 minn/a 2,06138.2319,703 USD-9,558
DAX 401 hourn/a 64839.5111,967 EUR-6,097
DAX 40Dailyn/a 4040.005,554 EUR-5,384
DAX 405 minn/a 2,15436.775,076 EUR-3,747
GoldDailyn/a 5248.083,053 EUR-982
Gold10 minn/a 2,23033.541,814 EUR-1,236
Gold4 hoursn/a 33239.461,483 EUR-1,140

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Linear Regression Money Flow Momentum
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Momentum
// Direction: Long & short
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE mfi = 0
ONCE mfok = 0

donmid = (highest[20](high) + lowest[20](low)) / 2
base = (donmid + Average[20](close)) / 2
bluewave = LinearRegression[20](close - base)

chg = TypicalPrice - TypicalPrice[1]

36 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

Donchian ChannelLinear RegressionSMAVolume
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 1,055 EUR is large next to the net profit of 1,071 EUR.

Questions

About this strategy

Can I run Linear Regression Money Flow Momentum 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 by trade count was Gold, 15 minutes, with 2,231 trades.

How large was the drawdown?

The best run had a maximum drawdown of 1,055 EUR at the tested position size, against a net result of 1,071 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

ATR Momentum

Also a momentum strategy.

n/a PF · 15,021 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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