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-------
 
Date: 9/6/2006 9:23:11 PM
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]net> 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.

 
__._,_.___

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






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to