Help - Search - Members - Calendar
Full Version: Laguerre RSI
Visual Trading Systems User Forums > VTTRADER INDICATORS > INDICATORS REQUESTS
formor
Could you please help me write this indicator for VT?

{ John Ehlers
Laguerre RSI
uses 4 element Laguerre filter

mod by Mark K (mido) 7/03
}
Inputs: Price(smoothedaverage(wc,3)),
gamm(.5),Displace (0); {damping factor, adjust to best suit your data, 0.50 - 0.85 }

Vars: L0(0),L1(0),L2(0),L3(0),CU(0),CD(0),LgRSI(0);

L0 = (1 - gamm)*Price + gamm*L0[1];
L1 = - gamm *L0 + L0[1] + gamm *L1[1];
L2 = - gamm *L1 + L1[1] + gamm *L2[1];
L3 = - gamm *L2 + L2[1] + gamm *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 LgRSI = 100*CU / (CU + CD);

if Displace >= 0 or CurrentBar > AbsValue( Displace ) then
begin

Plot1[Displace](LgRSI,"LaguerreRSI");
Plot2(80,"80");
Plot3(20,"20");
Plot4(50,"50");
end;

Thank You
HarryFx
cskidmore
Hello,

I found a few different formulas online and recreated them for use in VTtrader. Here's my rendition of your requested indicator. Download to your PC and import using the Indicator Builder in VTtrader. You can then add it to a chart like any other indicator.

Regards,
Chris
formor
Hi,
Works fine. Great job, Chris.
Thanks smile.gif
cskidmore
Hello,

You're welcome.

Regards,
Chris
Claude
Hello Harry
Chris did a good job with this one I tried coding it a while back but failed. Now that I do have the coding for the RSI. I can add this to it. The coding that you posted has a smoothening factor in trade stations. The line that reads

Inputs: Price(smoothedaverage(wc,3)),

translates in VT into this

smoothed:=sum(WC,3);
smoothedaverage:=smoothed/3;
Price:=(Ref(smoothed,-1)-Ref(smoothedaverage,-1)+WC)/3;

I took Chris's code and added the smoothening factor in the properties so that you can toggle it off and on and have both RSI is available to you.
cskidmore
Hello,

Thanks Claude. I wasn't sure if the user would want the smoothing. The formulas I found online did not use it so I just left it out. l probably would have just used mov(wc(),3,S); its results are very similar to your code. Very nice.

Regards,
Chris
surisriram
QUOTE(cskidmore @ Sep 9 2005, 12:04 PM) *

Hello,
Thanks Claude. I wasn't sure if the user would want the smoothing. The formulas I found online did not use it so I just left it out. l probably would have just used mov(wc(),3,S); its results are very similar to your code. Very nice.
Regards,
Chris



Hi

I am trying to attach the indicatore Laguerre RSI in the thread but just got a straight line

can you please let me know wat i am doing wrong?

thanks
cskidmore
Hello,

This indicator is a standard indicator in VT Trader. It can be found under the name "Ehlers Laguerre Relative Strength Index". I recommend that you use this version.

Regards,
Chris
surisriram
QUOTE(cskidmore @ Oct 31 2008, 10:55 AM) *

Hello,

This indicator is a standard indicator in VT Trader. It can be found under the name "Ehlers Laguerre Relative Strength Index". I recommend that you use this version.

Regards,
Chris


Thanks for the prompt reply is there anyway to smooth this or adding MA to this indicator
cskidmore
Hello,

Please download and import this version. It'll show up in the listing with the same name as the original, but with "Pre-Smoothed" at the end of its name. I've changed the price from "close" to a 3-period simple moving average of "typical price". If you want the original plot, just change the "Price" back to "Close" and the "Pre-Smoothing Periods" to "1".

Regards,
Chris
surisriram
QUOTE(cskidmore @ Oct 31 2008, 02:31 PM) *

Hello,

Please download and import this version. It'll show up in the listing with the same name as the original, but with "Pre-Smoothed" at the end of its name. I've changed the price from "close" to a 3-period simple moving average of "typical price". If you want the original plot, just change the "Price" back to "Close" and the "Pre-Smoothing Periods" to "1".

Regards,
Chris



Thanks cskidmore

one more small help i am using 2 lag RSI in my chart, is there anyway we can set an alert when both the lags are above 80 or both are below 20, that would be of great help

thanks
cskidmore
Hello,

QUOTE

one more small help i am using 2 lag RSI in my chart, is there anyway we can set an alert when both the lags are above 80 or both are below 20, that would be of great help


This will need to be created an an alert-only trading system. Are you using the modified version in Post #10 in this topic? Please provide very detailed requirements for your alert conditions (your description above is not quite detailed enough). Thank you!

Regards,
Chris
surisriram
QUOTE(cskidmore @ Nov 5 2008, 11:54 AM) *

Hello,
This will need to be created an an alert-only trading system. Are you using the modified version in Post #10 in this topic? Please provide very detailed requirements for your alert conditions (your description above is not quite detailed enough). Thank you!

Regards,
Chris


Sure !! Yes i am using the modified version in Post#10.
I am placing 2 different lags in my single chart(version in Post#10) one with input .6 and other with input .8
I want an alert when both .6 lag and .8 lag are in (80 - 100) region or (20 - 0) region

thanks
cskidmore
Hello,

QUOTE
I want an alert when both .6 lag and .8 lag are in (80 - 100) region or (20 - 0) region


This isn't specific enough. smile.gif Do you want the alert to trigger just on the first bar once both RSI's enter the zone(s) OR do you want the alert to trigger on *every* bar that the RSI's are inside the zone(s)? And, what type of "alerts" do you want - graphic on the chart, audio sound, message in the Trading Activity window, bar/candle highlights, etc.?

Regards,
Chris
surisriram
QUOTE(cskidmore @ Nov 5 2008, 01:31 PM) *

Hello,
This isn't specific enough. smile.gif Do you want the alert to trigger just on the first bar once both RSI's enter the zone(s) OR do you want the alert to trigger on *every* bar that the RSI's are inside the zone(s)? And, what type of "alerts" do you want - graphic on the chart, audio sound, message in the Trading Activity window, bar/candle highlights, etc.?

Regards,
Chris


Please excuse my ignorance blink.gif !!

I want the alert to trigger on every bar that the RSI's are inside the zone, is it possible for me to stop the trigger once i have seen it?
i want all graphic, audio and message in trading window if possible

thanks
cskidmore
Hello,

Your alert trading system is attached. You'll need to download it to your PC and use the Trading Systems Builder>Import button to import the trading system to your PC. Once attached to your chart you'll up/down arrows. In realtime, you'll also get sounds and text message alerts (in the trading activity window) when these signals occur.

If you want to temporarily disable an alert once it's been triggered, you can right-click the trading system label and select "View Parameters Enabled". You'll need to remove the check mark from the "Alert" column for the variable that's causing the alert. However, keep in mind that once disabled, you'll need to re-enable the alert by placing a check mark back in that variable's "Alert" column before that alert will be able to be triggered again.

Regards,
Chris
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.