PureBytes Links
Trading Reference Links
|
<SPAN
class=890060615-19032003>Keith,
As you
point out, the results are very similar. The leaders and the laggards are nearly
identical. The difference tends to fall in the middle. I continue to use the RSC
as I view the ROC component to be an important one in measuring the nuances of
an advance.
<SPAN
class=890060615-19032003>
<FONT
size=2>Someone (I believe Anthony or Herman) had suggested that dividing the
close value by the symbol count would aid in smoothing out extreme moves
of component stocks of the indexes. It makes sense and I have modified the
code to reflect that. If you are using the RSC code to view sector indexes
rather than stocks you may wish to modify the code that generates your
composites. Simply change the volume component to read <FONT
color=#0000ff>
AddToComposite(<FONT
color=#ff00ff>1,<FONT
color=#ff00ff>"~index",<FONT
color=#ff00ff>"V");
This
serves as a counter during the composite construction. The RSC formula would
then read....
<FONT
color=#000000>
Filter=C>0<FONT
color=#0000ff face=Arial size=2>;<FONT
size=2>
x=Foreign("~index","C")/Foreign("~index","V"<FONT
color=#282828><FONT color=#0000ff face=Arial
size=2>);
RSC=(ROC(MA((C<FONT
face=Arial>/V)/x,13),1))*100<FONT
color=#282828>;
AddColumn(RSC,"Today
RSC",1.2<FONT
color=#282828>,IIf<FONT
color=#282828>(RSC==0<FONT
color=#282828>,<FONT
color=#000000>colorBlue<FONT
face=Arial>,IIf<FONT
color=#282828>(rsc>Ref<FONT
color=#282828>(rsc,-1<FONT
color=#282828>),<FONT
color=#000000>colorGreen<FONT
face=Arial>,<FONT
color=#000000>colorRed<FONT color=#282828 face=Arial
size=2>)));
AddColumn(<FONT
color=#0000ff>Ref(RSC,-<FONT
color=#ff00ff>1),<FONT
color=#ff00ff>"Yesterday RSC",<FONT
color=#ff00ff>1.2,<FONT
color=#0000ff>IIf(RSC==<FONT
color=#ff00ff>0,<FONT
color=#000000>colorBlue<FONT
face=Arial>,IIf<FONT
color=#282828>(Ref<FONT
color=#282828>(rsc,-1<FONT
color=#282828>)>=Ref<FONT
color=#282828>(rsc,-2<FONT
color=#282828>),<FONT
color=#000000>colorGreen<FONT
face=Arial>,<FONT
color=#000000>colorRed<FONT color=#282828 face=Arial
size=2>)));
AddColumn(<FONT
color=#0000ff>Ref(RSC,-<FONT
color=#ff00ff>2),"2 days
ago",1.2<FONT
color=#282828>,IIf<FONT
color=#282828>(RSC==0<FONT
color=#282828>,<FONT
color=#000000>colorBlue<FONT
face=Arial>,IIf<FONT
color=#282828>(Ref<FONT
color=#282828>(rsc,-2<FONT
color=#282828>)>=Ref<FONT
color=#282828>(rsc,-3<FONT
color=#282828>),<FONT
color=#000000>colorGreen<FONT
face=Arial>,<FONT
color=#000000>colorRed<FONT color=#282828 face=Arial
size=2>)));
AddColumn(<FONT
color=#0000ff>Ref(rsc,-<FONT
color=#ff00ff>3),"3 days
ago",1.2<FONT
color=#282828>,IIf<FONT
color=#282828>(RSC==0<FONT
color=#282828>,<FONT
color=#000000>colorBlue<FONT
face=Arial>,IIf<FONT
color=#282828>(Ref<FONT
color=#282828>(rsc,-3<FONT
color=#282828>)>=Ref<FONT
color=#282828>(rsc,-4<FONT
color=#282828>),<FONT
color=#000000>colorGreen<FONT
face=Arial>,<FONT
color=#000000>colorRed<FONT color=#282828 face=Arial
size=2>)));
The
blue line will reflect the index universe, green shows the sector advancing over
the previous time frame and red declining. Depending on your time frame you may
wish to adjust the ref periods.......
<SPAN
class=890060615-19032003>
If you
are simply reading stocks the original code is fine.
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Keith Bennett
[mailto:kbennett@xxxxxxxxxx]Sent: Wednesday, March 19, 2003 8:55
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re:
RSI - RSC (Jason?)Jason,Thank you for the
RSC afl which you submitted in #34763. I have found it most useful.When
I run your code below on the NDX it produces very similar results to the RSC
formula in #34763 although there are some differences.Does the earlier
RSC afl which includes the ROC function have any particular advantage over
the code below?Keith--- In amibroker@xxxxxxxxxxxxxxx,
"Jayson" <jcasavant@xxxx> 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@xxxx]> 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: <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 Yahoo! Terms of Service.> >> >>
>>
>
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: <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 Yahoo! Terms of
Service.> > >
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: <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 Yahoo! Terms of
Service.Send
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.
|