PureBytes Links
Trading Reference Links
|
Thanks to Jason and CS for the clues this beginner to AB needed to
convert the Laguerre RSI indicator from MetaStock code. Hope someone
will get some use from this indicator.
Ron
/*Laguerre RSI Indicator
This indicator fluctuates between 0 and 1. A turn upward from 0 and
a turn downward from 1 gives some nice alert signals for the more
adventurous.
Safer signals are:
Buy after RSI touches 0 and crosses above approx 0.4
Sell after RSI touches 1 and crosses below approx 0.6
*/
S=0.5; //S = Sensitivity
L0=AMA2((1-S)*C,1,S);
L1=AMA2((-S*L0) +Ref( L0,-1),1,S);
L2=AMA2((-S*L1) +Ref( L1,-1),1,S);
L3=AMA2((-S*L2) +Ref( L2,-1),1,S);
CU=IIf(L0>L1, L0-L1,0) +IIf(L1>L2, L1-L2,0) + IIf(L2>L3, L2-L3,0);
CD=IIf(L0<L1, L1-L0,0) + IIf(L1<L2, L2-L1,0) + IIf(L2<L3, L3-L2,0);
Temp=IIf(CU+CD==0, -1,CU+CD);
LRSI=IIf(Temp==-1,0,CU/Temp);
Plot(LRSI,"",4);
GraphXSpace=10;
PlotGrid(0,colorBlack);
PlotGrid(1,colorBlack);
PlotGrid(.4,colorBlack);
PlotGrid(.6,colorBlack);
Title = Name() + " - Laguerre RSI " ;
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|