I tinkered with using relative strength for comparing sectors, for some time. I had a problem with believing past results automatically coincide with future performance.
I find it better to simply apply my usual trading signals to sector composites, and then weight the buy/short sigals based on on how many signals are triggered within a given number of bars. You can apply the "above 200MA" or "near 52-week high" filters to sector composites, so you don't have to worry about catching sectors that have dipped, but are more like a falling knife. Catching a dip in a strong sector seems to be the way to go. Determining the strongest sector relative to other sectors just seems to be part contrarian in nature, but not so much so that you can actually pick one side over another. Not sure if all this makes sense, but take what you can and leave the rest ;-) ~B --- In [email protected], "Joe Landry" <[EMAIL PROTECTED]> wrote: > > Don - Quotes Plus has a relative strength metric and here's how it's calculated; by ranking the issue against all of the other issues in the database, numbering some 8208 as of last night. I think it was Randy that pointed out you won't get to the IBD ranking unless you compare an issue to all the others in your universe on in this case the IBD universe. The formulas/TC2005 scripts given in my note and previous notes won't do it. As an ex user of TC2000 I don't think that package develops any ranking either. > > I have a surrogate of IBD's RS in my QP database and it's an area that I've been interested in. I've not been able to work up a profitable strategy from it. IBD's RS may have worked in the past when time moved more slowly, OR in a rising trend, it will work like a charm to select out the top performers. > > Here's a definition, an attached plot for your comparison, and the AFL used to plot it in an indicator window with a QP3 database. > > Plot(Close,"Close",colorBlue,styleThick); > > QRS = GetExtraData("QRS"); > > Plot(QRS,"RelStrength - QuotesPlus",colorOrange,styleLine|styleOwnScale); > > Hope this helps > > JOE > > >>>>>>>>>>>>>>>>>... QP Definition <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > Relative Strength( DayNum ) > > Returns the relative strength for the selected date. The Quotes Plus Relative Strength is calculated by comparing the performance of each issue for the past 4 quarters to the performance of every other issue in the database over the same time. The most recent quarter is given twice the weight of the previous 3 quarters. > > The relative strength value ranges from 0 to 99. A value of 99 means that the issue has performed better than 99% of the other issues in the database. DayNum must be <= 0. > > ----- Original Message ----- > From: Don Lindberg > To: [email protected] > Sent: Thursday, September 07, 2006 12:34 AM > Subject: RE: [amibroker] IBD Relative Strength > > > Fred, > Thanks for the code. It is awful close to the IBD charts in the paper, just a bit more choppier than IBD's version. I am playing around with applying different moving averages to see if I can pull it closer to O'Niel's version. I'm getting closer. Thanks for your help. > > Don > > > -------Original Message------- > > From: Fred S. Esch > Date: 9/6/2006 9:23:11 PM > To: [email protected] > Subject: RE: [amibroker] IBD Relative Strength > > Dear Don, > > I included an exponential moving average of the ROC to identify trend changes. I agree with Randy's post that being able to rank all stocks against each other in a 1-99 ranking system would be great. My sense is that it can be done but I'm not familiar enough with AFL to do it. > > > > Regards, > > > > Fred > > > > //IBD Weighted ROC > > //Ideally would like to compare an ROC of a stock vs all other stocks and rank them 1-99. > > > > Per = Param("Per",63,5,250,1); > > IBDroc = ((C-Ref(C,-63)/Ref(C,-63))*0.4 + (C-Ref(C,- 126)/Ref(C,-126))*0.2 + (C-Ref(C,-189)/Ref(C,-189))*0.2 + (C-Ref(C,- 252)/Ref(C,-252))*0.2)*100; > > IBDrocMA = EMA(IBDroc,Per); > > Plot(IBDroc,"IBD Weighted ROC",colorBlue,styleLine); > > Plot(IBDrocMA,"EMA of IBDroc",colorBlue,styleDashed); > > > > > ------------------------------------------------------------------- ----- > > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Randy Harmelink > Sent: Wednesday, September 06, 2006 6:03 PM > To: [email protected] > Subject: Re: [amibroker] IBD Relative Strength > > > > On 9/6/06, Don Lindberg <[EMAIL PROTECTED]> wrote: > > I am trying to create an indicator that will mimic the Relative > > Strength Line from the IBD newspaper charts. Using the default RS in > > AmiBroker does not give same graph. I also use Worden's Tel-Chart, > > and I am able to get the indicator in TC to work correctly with the > > folowing formula: > > ((((C - C63) / C63) * .4) + (((C - C126) / C126) * .2) + (((C - > > C189) / C189) * .2) + (((C - C252) / C252) * .2))*100 > > I believe the calculation would be: > > ((((C - C63) / C63) * .4) + (((C63 - C126) / C126) * .2) + (((C126 - C189) / C189) * .2) + (((C189 - C252) / C252) * .2))*100 > > ....but all that will give you is an weighted quarterly ROC with the most recent quarter double-weighted. > > > Now my question is, can anyone adapt this indicator code for use in > > AmiBroker, so I can have an IBD Relative Strength Line in my AB charts > > as well? > > The calculation above would only compute the weighted ROC for a single stock. In order to create the IBD relative strength line, you now need to rank the weighted ROC of that stock against the weighted ROC of all other stocks, then group the rankings from 1 to 99. > ------------------------ Yahoo! Groups Sponsor --------------------~--> GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo. http://us.click.yahoo.com/Qrk6tA/jlQNAA/cosFAA/GHeqlB/TM --------------------------------------------------------------------~-> Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
