Adaptive Laguerre Indicator "hangs" in a Rotation Strategy
Author: Carova
Creation Date: 3/23/2019 4:16 PM
profile picture

Carova

#1
Hi Eugene!

I attempted to use the Adaptive Laguerre indicator in a Rotation Strategy and found that it hangs the process when used with the Dow 30 (or any other DataSet).

CODE:
Please log in to see this code.


It does not seem to have a similar issue with any other indicator that I have tried.

Vince
profile picture

Eugene

#2
Click on DWDP symbol (the one with the shortest history). Does it help?
profile picture

Carova

#3
Hi Eugene!

Yes, using DWDP does get it to run, but if I use the code below

CODE:
Please log in to see this code.


allows me to use nearly any symbol. This was the issue that I found with the Adaptive Laguerre since I surely do not want to use the symbol with the shortest strategy! ;)

Vince

profile picture

superticker

#4
Have you thought about substituting the Adaptive Laguerre filter for some other adaptive filter like John Ehlers' DSMA (Deviation-Scaled Moving Average)? Just curious. The DSMA filter won't have as much phase delay as the Laguerre filter.
profile picture

Eugene

#5
Vince, yesterday I deliberately suggested to use the shortest symbol because it was reasonable to believe that the issue with AdaptiveLaguerre has to do with synchronization. Being the symbol with the shortest history, obviously DWDP doesn't have the bars for a lot of dates. So Wealth-Lab synchronizes its data by prepending zero data. For this reason you should choose a data loading range equal for all included symbols.

It's easy to prove by dropping the AdaptiveLaguerre onto any chart which is altered with a Strategy code like this:
CODE:
Please log in to see this code.

Provided there are enough bars loaded the indicator will make Wealth-Lab freeze.

As the indicator code was submitted by a WL4 community member more than a decade ago (rather than came with a S&C article by Mr. Ehlers as usual) it's impossible to tell whether the issue is caused by the formula itself or its implementation.

So the natural fix is to make AdaptiveLaguerre skip processing the bar if the DataSeries has a zero value on it. Look for the patch in C.Indicators v2019.04.
profile picture

Carova

#6
superticker,

Thanks! Yes. I am examining all of the various "smoothers" to understand the positives/negatives of each. The Adaptive Laguerre is just the next one on my list.

Vince
profile picture

Carova

#7
QUOTE:
So the natural fix is to make AdaptiveLaguerre skip processing the bar if the DataSeries has a zero value on it. Look for the patch in C.Indicators v2019.04.


Thanks Eugene!

Vince
profile picture

Eugene

#8
You're welcome Vince. Also said patch fixes another issue with the AL that you raised quite long ago ;)

Strategy never stops: AdaptiveLaguerre
profile picture

Carova

#9
So a "double" Thanks! ;)

Vince
profile picture

Eugene

#10
Bug fixed in Community Indicators v2019.04:

* Fix: AdaptiveLaguerre makes WL freeze if DataSeries has many zero bars
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).