PureBytes Links
Trading Reference Links
|
Yes I had the same, and found an AFL by DT that made them match
PerRSI = 14;
MUp=IIf(C>Ref(C,-1),abs(C-Ref(C,-1)),0);
MDn=IIf(C<Ref(C,-1),abs(C-Ref(C,-1)),0);
Rup = Wilders(Mup,PerRSI);
Rdn = Wilders(Mdn,PerRSI);
myRSI = 100*(Rup / (Rdn+Rup) ) ;
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: taotra [mailto:ggoll@xxxxxxxxxxxx]
Sent: Monday, 15 September 2003 12:44 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] RSI plots don't match
I have a trading program that plots an RSI with the following
formula in Metastock format:
rsi_r := (close - open);
rsi_rs := Wilders(if(rsi_r>0,rsi_r,0),period) / Wilders(if
(rsi_r<0,Abs(rsi_r),0),period);
RSI := 100-(100/(1+rsi_rs));
The problem is that I get different results when compared to AB's
RSI (I don't know AB's RSI formula). How can I adapt the one above
to match that of AB?
TIA
Gernot
------------------------ 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/l.m7sD/LIdGAA/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/
------------------------ 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/l.m7sD/LIdGAA/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/
|