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

[amibroker] Relative Strength



PureBytes Links

Trading Reference Links




Hi All,
 
I'm doing some work on industries and am trying to get 
Relative Strength
data.
 
I've used the below code and tested a few tickers and it seems 
to work.
 
Any comments, clarifications or improvements 
appreciated.
 
Regards,
 
Tony
 

//############ Relative Strength ##########
Filter = 1<FONT 
face=Arial>;
RS10 = ROC<FONT 
face=Arial>(RelStrength<FONT 
face=Arial>("GSPC"<FONT 
face=Arial>,1<FONT 
face=Arial>),10<FONT 
face=Arial>,False); //10 day 
RS
RS21 = ROC<FONT 
face=Arial>(RelStrength<FONT 
face=Arial>("GSPC"<FONT 
face=Arial>,1<FONT 
face=Arial>),21<FONT 
face=Arial>,False); //1 month 
RS
RS63 = ROC<FONT 
face=Arial>(RelStrength<FONT 
face=Arial>("GSPC"<FONT 
face=Arial>,1<FONT 
face=Arial>),63<FONT 
face=Arial>,False); //3 month 
RS
RS126 = ROC<FONT 
face=Arial>(RelStrength<FONT 
face=Arial>("GSPC"<FONT 
face=Arial>,1<FONT 
face=Arial>),126<FONT 
face=Arial>,False); //6 month 
RS
AddColumn(RS10,<FONT face=Arial 
color=#800080>" 10 Day RS",<FONT face=Arial 
color=#ff00ff>1.2);<FONT face=Arial 
color=#0000ff>
AddColumn(RS20,<FONT face=Arial 
color=#800080>" 1 Month RS",<FONT face=Arial 
color=#ff00ff>1.2);<FONT face=Arial 
color=#0000ff>
AddColumn(RS60,<FONT face=Arial 
color=#800080>" 3 Month RS",<FONT face=Arial 
color=#ff00ff>1.2);<FONT face=Arial 
color=#0000ff>
AddColumn(RS120,<FONT face=Arial 
color=#800080>" 6 Month RS",<FONT face=Arial 
color=#ff00ff>1.2);<FONT face=Arial 
color=#008000>
//########## NOTES ##########<FONT 
face=Arial color=#008000>
// USAGE
//Run in Exploration<FONT 
face=Arial>
//Apply to > various<FONT 
face=Arial>
    //All Stocks for 
Media General Industries
//Range > last day of 
database






Yahoo! Groups Sponsor












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.