RSILaguerre
Author: urielt
Creation Date: 6/23/2009 10:47 AM
profile picture

urielt

#1
i get an error when translating to v5

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Don't code what you can beg, borrow or steal! :)

Grab Community.Indicators right here:
Laguerre RSI
Adaptive Laguerre filter
profile picture

urielt

#3
i try to translate to use it as a strategy to v5 when i try to compile it i get an error

CODE:
Please log in to see this code.
profile picture

Eugene

#4
1. Whenever possible, try to ask WealthScript Translator related questions on its support forum.
2. The error message is basically telling you that the compiler was unable to find a required assembly (library, DLL). Go to your WSTL installation directory and find WealthScriptTL.dll there. Copy it to Wealth-Lab Developer 5 main directory.
3. There is a little glitch in fundtimer's code you found here. The LaguerreRSI is initialized with the Period=0.5, but later in the code gets substituted with Period=0.0, because the Period variable is never initialized, so it's assumed to be 0. In C# 2.0, it shouldn't be possible. WL5 will raise an error on an attempt to use an non-initialized variable.

Here's the native code that doesn't require WSTL but requires Community.Indicators to be insttalled:
CODE:
Please log in to see this code.
profile picture

urielt

#5
Thanks so much Eugene,

i am trying to have a strategy base on LaguerreRSI by John F. Ehlers filter . the strategy basically buy at "20" market price
and sell at "80" at market price (and have the option to modify the 20 and 80)

Regards
profile picture

Eugene

#6
Here you go.

I assumed that you wanted the series to cross over/under the 20/80 thresholds when coding this.

CODE:
Please log in to see this code.
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).