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

[amibroker] Re: RSI



PureBytes Links

Trading Reference Links

Anthony,

This works perfectly, as usual. Question is, does this gain anything 
over a simple (ROC?) ranking using something like:

rs=(C-Ref(C,-250))/Ref(C,-250);
Filter=1; 
AddColumn(rs,"rs",1.2); 

If I rank all the stocks in the ^NDX using the two methods, the 
results are VERY similar (but not EXACTLY the same).

Steve




--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Alan,
>  
> Here is what I use:
>  
> //Relative Comparison %
> period = 250;//Period of relative Comparison
> BaseMarket="^ndx";//select Base market
> x = Foreign(BaseMarket,"C") - Ref(Foreign(BaseMarket,"C"),-period);
> x = (x / Ref(Foreign(BaseMarket,"C"),-period)) * 100;
> y = C - Ref(C,-period);
> y = ( y / Ref(C,-period)) * 100;
> rs = y - x;
> Filter=1;
> AddColumn(RS,"RS_%",1.2);
> Anthony
>  
> -------Original Message-------
>  
> From: amibroker@xxxxxxxxxxxxxxx
> Date: Friday, March 14, 2003 12:50:55
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] RSI
>  
> Has anybody developed a formula that calculates and shows the RS of 
a 
> certain stock compare to list of stocks (such as N100). Something 
> similar to RS in Investor Business Daily.
>  
> Alan
>  
>  
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>  
>  
>  
>  
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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.


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/