John Ehlers is a name you’ll run across when you start your journey into testing various indicators and filters to be used in your trading models. I remember reading about the Laguerre Filter and Laguerre RSI many years ago when they first appeared on the scene. At the time I was not nearly into quantitative trading as I am today. So let’s take a closer look at the Laguerre RSI and answer a simple question:

Can the Laguerre RSI perform better than our standard 2-period RSI?

Laguerre RSI (LRSI) was authored by John Ehlers. You can read about the Laguerre filter in his article, “Time Warp – Without Space Travel“. At the heart of the LRSI indicator is the Laguerre Transform. The mathematics and explication of the Laguerre filter is well beyond the scope of this article or my understanding. In short, John Ehlers appears to use this technique to “warp” the time coefficients of a traditional EMA filter which results in a quicker response.

Below is the EasyLanguage code for a 4-element Laguerre filter.

Inputs: Price((H+L)/2),

gamma(.8);

Vars: L0(0),

L1(0),

L2(0),

L3(0),

Filt(0)

FIR(0);

L0 = (1 - gamma)*Price + gamma*L0[1];

L1 = -gamma*L0 + L0[1] + gamma*L1[1];

L2 = -gamma*L1 + L1[1] + gamma*L2[1];

L3 = -gamma*L2 + L2[1] + gamma*L3[1];

Filt = (L0 + 2*L1 + 2*L2 + L3) / 6;

FIR = (Price + 2*Price[1] + 2*Price[2] + Price[3]) / 6;

Plot1(Filt, "Filt");

Plot2(FIR, "FIR");

The standard Relative Strength Index (RSI) was authored by Wells Wilder. The LRSI uses the current price, a user defined gamma factor, and plenty of feedback to calculate its final value. Below is the EasyLanguage code:

Inputs: gamma(.5);

Vars: L0(0),

L1(0),

L2(0),

L3(0),

CU(0),

CD(0),

RSI(0);

L0 = (1 – gamma)*Close + gamma*L0[1];

L1 = - gamma *L0 + L0[1] + gamma *L1[1];

L2 = - gamma *L1 + L1[1] + gamma *L2[1];

L3 = - gamma *L2 + L2[1] + gamma *L3[1];

CU = 0;

CD = 0;

If L0 >= L1 then CU = L0 - L1 Else CD = L1 - L0;

If L1 >= L2 then CU = CU + L1 - L2 Else CD = CD + L2 - L1;

If L2 >= L3 then CU = CU + L2 - L3 Else CD = CD + L3 - L2;

If CU + CD <> 0 then RSI = CU / (CU + CD);

Plot1(RSI, "RSI");

Plot2(.9);

Plot3(.1);

The LRSI behaves in a similar manner to the classic RSI. In the past I’ve tested the 2-period RSI indicator within several mean reverting trading models that trade the U.S. index futures. Several profitable trading models can be built with this indicator that produce surprising solid results for nearly 20 years. The basic rules for the 2-period RSI is to buy when the RSI value falls below a threshold, such as 10. Then sell the position when the price rises above a threshold, such as 90.

Below is a chart of the 2-period RSI trading model applied to the daily chart of the eMin. The bottom pane contains the RSI signal. You can see when this value falls, we enter a new position and hold until the RSI value rises above 90.

The LRSI would be traded in a similar fashion. Buying when the value falls below a critical threshold, and closing the trade when it rises above a threshold. Below is an image of the LRSI and RSI being applied to a daily chart of the S&P futures.

You can see when both indicators fall, they create setups for opening trades. I’m now going to compare our old friend, with Ehler’s much more complex LRSI.

## Testing Environment

Before getting into the details of the results, let me say this: Unless otherwise stated, all the tests within this article are going to use the following assumptions:

- Starting account size of $100,000
- In-sample dates are from 1998 through November 30, 2016
- One contract was traded per signal
- No deductions were made for slippage and commissions

## Baseline

Our baseline will be the 2-period RSI. This trading model will enter a trade when the RSI value falls below 10 and exists when price rises above 90. Below are the results:

**Baseline RSI (2)**

Baseline | |
---|---|

Net Profit | $74,125 |

Profit Factor | 1.72 |

Total Trades | 151 |

%Winners | 75% |

Avg.Trade Net Profit | $490.89 |

Annual Rate of Return | 3.00% |

Max Drawdown(Intraday) | $27,463 |

Baseline RSI(2) performance

## RSI vs LRSI On S&P

Now let’s test the LRSI over the same market. The LRSI will enter a trade when the value falls below .10 and closed when the value rises above .90. The results are in the table below.

Baseline | LRSI(.5) | |
---|---|---|

Net Profit | $74,125 | $71,400 |

Profit Factor | 1.72 | 1.82 |

Total Trades | 151 | 119 |

%Winners | 75% | 72% |

Avg. Trade Net Profit | $490.89 | $600.00 |

Annual Rate of Return | 3.00% | 2.92% |

Max Drawdown (Intraday) | $27,463 | $34,163 |

Baseline RSI(2) performance vs LRSI(.5)

In this test we can see the baseline and LRSI perform very similar. We end up with about the same net profit and very similar annual returns. The LRSI trading model produces fewer trades and each trade produces nearly $110 more net profit. The maximum intraday drawdown for the LRSI is higher. So if you can endure more drawdown, you can trade a model which makes similar amount of profit on fewer trades.

But this is just looking at a single stock index market. Let’s look at some others.

## RSI vs LRSI On Major U.S. Stock Indexes

Below is the results of testing RSI vs LRSI on the DOW (YM).

**Baseline Vs LRSI(.5) Trading YM**

Baseline | LRS | |
---|---|---|

Net Profit | $40,185 | $46,605 |

Profit Factor | 1.77 | 1.98 |

Total Trades | 113 | 89 |

%Winners | 73% | 76% |

Avg. Trade Net Profit | $355.62 | $523.65 |

Annual Rate of Return | 2.43% | 2.76% |

Max Drawdown (Intraday) | $22,435 | $28,080 |

Baseline RSI(2) performance vs LRSI(.5)

Looking at the results for trading the DOW we see similar results as when trading the S&P. That is, we see RSI and LRSI make about the same amount of net profit. LRSI does this on fewer trades but it also has more drawdown. In this particular case, LRSI is probably producing slightly better results than RSI. Next is NASDAQ (NQ).

**Baseline vs LRSI(.5) Trading NQ**

Baseline | LRS | |
---|---|---|

Net Profit | $12,415 | $40,800 |

Profit Factor | 1.11 | 1.49 |

Total Trades | 130 | 107 |

%Winners | 67% | 77% |

Avg. Trade Net Profit | $95.50 | $381.31 |

Annual Rate of Return | 0.70% | 2.05% |

Max Drawdown (Intraday) | $64,370 | $45,230 |

Baseline RSI(2) performance vs LRSI(.5)

Looking at the results for NASDAQ we can see LRSI actually performs significantly better. More than three times as much profit on fewer trades. Nice! Next up, let’s take a look at midcap stocks by using the S&P Midcap 400 contract.

**Baseline vs LRSI(.5) Trading EMD**

Baseline | LRS | |
---|---|---|

Net Profit | $110,400 | $98,500 |

Profit Factor | 2.25 | 2.32 |

Total Trades | 118 | 88 |

%Winners | 78% | 76% |

Avg. Trade Net Profit | $935.59 | $1,119.32 |

Annual Rate of Return | 5.20% | 4.88% |

Max Drawdown (Intraday) | $39,740 | $44,390 |

Baseline RSI(2) performance vs LRSI(.5)

Once again we see very similar results between the two markets. Finally, let’s take a look at the Russell 2000 (TF).

**Baseline vs LRSI(.5) Trading TF**

Baseline | LRS | |
---|---|---|

Net Profit | $55,375 | $30,635 |

Profit Factor | 2.21 | 1.74 |

Total Trades | 119 | 85 |

%Winners | 76% | 73% |

Avg. Trade Net Profit | $465.34 | $360.41 |

Annual Rate of Return | 3.08% | 1.87% |

Max Drawdown (Intraday) | $16,350 | $18,655 |

Baseline RSI(2) performance vs LRSI(.5)

In this case we see significant improvement in trading the RSI model on the Russell 2000.

## Portfolio Comparison

Using TradeStations Portfolio Maestro feature, I’m going to combine all our trading symbols from this test into a basket. We can then apply our trading models to this entire basket. This will allow me to generate a summary of our two trading models over all the markets we looked at. The following table contains the results of trading a $100,000 account across all symbols (ES, YM, NQ, EMD, TF) including deducting $30 from each trade for slippage and commissions. Only one contract was traded per signal.

**RSI vs LRSI Trading Index Portfolio**

Baseline | LRS | |
---|---|---|

Net Profit | $253,998 | $251,960 |

Profit Factor | 1.59 | 1.76 |

Total Trades | 634 | 474 |

%Winners | 72% | 74% |

Avg. Trade Net Profit | $400.32 | $531.56 |

Annual Rate of Return | 7.76% | 7.72% |

Max Drawdown (Intraday) | $117,858 | $137,010 |

Baseline RSI(2) performance vs LRSI(.5)

It’s interesting to note how close net profit and annual rate of return is between the RSI and LRSI trading models. In this respect the trading models are nearly identical. What’s different is the number of trades and drawdown. So which one is better? It comes down to what you prefer with regards to drawdown and number of trades. It looks like they both end up at the same location but take slightly different roads to get there.

[…] The Laguerre RSI vs Classic RSI [System Trader Success] […]

Jeff Hi

I read your article regarding the world’s sinplest stratey to invest.

There you are talking about using the monthly chart and 10 moving average.

The article talks about FTSE and I am interested if you have a reaserch using tradestation for the SPY.

Thanks

Yariv

Hello Yariv. Are you talking about the Ivy Portfolio? If not, do you have a link to the article you’re talking about? Thanks.

Hi Jeff,

What about trying to see what’s happen if both the RSI indicators are triggering together?

Marco Simioni

https://nightlypatterns.wordpress.com/

Hello Marco. That would be a good idea. I’m first working on a follow-up article with a few other ideas on the LRSI. But, I will keep your ideas in mind. Thanks.

Hi, Jdff, I like this article. thanks. but now can’t download the files for study.

Hello CNtrader. There was a problem with the downloads. Thanks for letting me know. Please check them now, they should work.