Join waitlist
Strategies / Trend / Triple Moving Average Laguerre Filter

Triple Moving Average Laguerre Filter

The strategy buys when the moving averages stack upward, Laguerre RSI is above 80, and ADX is above 20. It sells short on the mirror conditions and exits when the 16 and 48-period EMAs cross.

TrendLong & shortSwingEUR/USDDaily
2.29Profit factor
170,286Net profit USD
49.59%Win rate
121Trades
-34,076Max drawdown
1,407Avg trade

Best run of 17. EUR/USD, Daily, spread 1, from run pf:2026-10-12-EURUSD-D.tsv:6.

Entry rules, long

  1. The Laguerre RSI (gamma 0.8) is above 80.
  2. ADX(14) is above 20.

Entry rules, short

  1. The Laguerre RSI is below 20.
  2. ADX(14) is above 20.

Exit rules

  1. The 16-period EMA crosses over the 48-period EMA, closing the short.

Test conditions

PeriodUp to 2026-10-12
InstrumentEUR/USD, 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
EUR/USDBest runDaily2.29 12149.59170,286 USD-34,076
USD/JPYDaily1.89 12941.861,809,490 USD-420,550
USD/JPY10 minn/a 1,92134.15447,790 USD-175,110
USD/JPY30 minn/a 1,92635.62443,510 USD-200,650
EUR/USD4 hoursn/a 45836.2460,243 USD-31,227
Nikkei 225Dailyn/a 10039.0040,241 USD-17,696
Silver30 minn/a 1,97230.9829,846 USD-22,567
GBP/USDDailyn/a 13340.6014,707 USD-7,199
Nasdaq 100Dailyn/a 9845.9211,552 EUR-3,470
US Crude OilDailyn/a 11533.049,573 EUR-7,517
Brent CrudeDailyn/a 5034.007,839 EUR-5,558
S&P 500Dailyn/a 13135.882,834 EUR-1,140
GoldDailyn/a 12846.092,638 EUR-1,111
Gold30 minn/a 1,94333.812,141 EUR-676
Gold10 minn/a 1,98031.162,049 EUR-777
Gold15 minn/a 1,96331.691,569 EUR-823
Gold5 minn/a 1,98630.561,474 EUR-644

Charts

Results by run

Top 10 of 17 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Triple Moving Average Laguerre Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lzero = 0
ONCE lone = 0
ONCE ltwo = 0
ONCE lthree = 0

emafast = ExponentialAverage[16](close)
emaslow = ExponentialAverage[48](close)
smalong = Average[200](close)

gamma = 0.8
pzero = lzero
pone = lone
ptwo = ltwo
pthree = lthree
lzero = (1 - gamma) * close + gamma * pzero
lone = -gamma * lzero + pzero + gamma * pone
ltwo = -gamma * lone + pone + gamma * ptwo
lthree = -gamma * ltwo + ptwo + gamma * pthree

cu = 0
cd = 0

40 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

ADXEMASMA
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Triple Moving Average Laguerre Filter 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 17 market and timeframe combinations. The best run was EUR/USD, Daily, with a profit factor of 2.29 over 121 trades.

How large was the drawdown?

The best run had a maximum drawdown of 34,076 USD at the tested position size, against a net result of 170,286 USD.

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

Slow MACD Slope

Best run on the same market, EUR/USD.

6.80 PF · 7,305 trades

SMA Crossover Trend

Also a trend strategy.

2.29 PF · 229 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