[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Laguerre RSI Indicator



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Rick,
are 
you perhaps missing some code at the bottom? what value is it that you wish to 
plot? Temp or the unnamed line after that?
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: rck1135 
[mailto:rkrebs@xxxxxxxxxxxxx]Sent: Tuesday, December 09, 2003 12:38 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Laguerre RSI IndicatorI have found the Laguerre RSI 
indicator to be a valuable device with MetaStock but have been unsuccesful 
converting it to AB.  This is primarily because I have not been able to 
duplicate the MS 'Prev' function after trying every permutation of the AB 
'Ref()' function I can think of.  The MS code follows and perhaps some 
astute AB user will be more succesful than I in achieving a working 
conversion.g:=0.5;L0:=((1-g)*C) + (g*PREV);L1:=(-g*L0) + 
Ref(L0,-1) + (g*PREV);L2:=(-g*L1) + Ref(L1,-1) + (g*PREV);L3:=(-g*L2) + 
Ref(L2,-1) + (g*PREV);cu:= If(L0>L1, L0-L1,0) + If(L1>L2, L1-L2,0) 
+ If(L2>L3, L2-L3,0);cd:= If(L0<L1, L1-L0,0) + If(L1<L2, L2-L1,0) + 
If(L2<L3, L3-L2,0);temp:= If(cu+cd=0, 
-1,cu+cd);If(temp=-1,0,cu/temp)Thanks for your interest,Ron - 
Mission Viejo, CASend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.