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

Re: [amibroker] Re: RSI



PureBytes Links

Trading Reference Links

Jayson,

Thank you for the code...I will give it a try...

Answer:

Actually, I look at several time frames for RS% comparison, Yearly (
usually 250 to 256 days, please I do not want to discuss trading days in
a year), Quartely, and Near term ( usually 20 to 22 days). I feel that
tracking the RS% comparison this way gives me a more confident outlook
on those  particular tickers in relation to the Index and what they are
doing.

Anthony

Jayson wrote:

>  Anthony,I was reviewing your code for the RS comparison and thought
> perhaps It would be be an interesting study for my Sector Rotation
> work. It Was, thanks! you may find this variation of use. It provides
> a visual look at the trend of each reading. For longer term study you
> may wish to adjust the ref periods....Question: You had selected 250
> as a look back period. Was this arbitrary or have you done some tests
> to determine this range to be optimal??  file://Relative Comparison
> % period = 21;//Period of relative
> Comparison BaseMarket="~index";//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,"Today
> RS%",1.2,IIf(RS==0,colorBlue,IIf(rs>Ref(rs,-1),colorGreen,colorRed)));AddColumn(Ref(RS,-1),"Yesterday
> RS%",1.2,IIf(RS==0,colorBlue,IIf(Ref(rs,-1)>=Ref(rs,-2),colorGreen,colorRed)));AddColumn(Ref(RS,-2),"2
> days
> ago",1.2,IIf(RS==0,colorBlue,IIf(Ref(rs,-2)>=Ref(rs,-3),colorGreen,colorRed)));AddColumn(Ref(rs,-3),"3
> days
> ago",1.2,IIf(RS==0,colorBlue,IIf(Ref(rs,-3)>=Ref(rs,-4),colorGreen,colorRed)));  Jayson
> -----Original Message-----
> From: Anthony Faragasso [mailto:ajf1111@xxxxxxxx]
> Sent: Tuesday, March 18, 2003 2:40 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Re: RSI
>
> Hello,
>
> Comparative Relative Strength can be useful in deciding which security
>
> to buy, by helping to pinpoint the best performer. They can also be
> useful in developing spreads, i.e., purchase of the best performer
> "long", and selling the weaker issues "short."
>
> Steve, if you load the following into AA , select the ndx100 and
> componets , n last quotation and n=1,click explore...the results are
> quite different....
>
> also, the RS% value is comparing the ticker to the INDEX, your value
> is
> simply a ROC of the Ticker itself.
>
> Anthony
>
> steve_almond wrote:
>
> >  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.
> >
> >
> >
> >                    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.
>
>
>
>
> 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.
>
>                    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.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/46VHAA/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/