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

[amibroker] Re: RelStrength



PureBytes Links

Trading Reference Links

As I was entering this message, someone else also entered message with RelStrength in subject bar?

--- In amibroker@xxxxxxxxxxxxxxx, "levibreidenbach" <levib1@xxx> wrote:
>
> My question is in regards to calculating relative strength of security compared to S&P500.
> 
> First, how does the AFL function RelStrength work?  If I enter RelStrength(MSFT), what exactly is calculated.  I understand there are an infinite number ways to calculate relative strength.
> 
> For this example, assume I have two arrays (S&P500 and other security).  S&P500 data goes back to 09/01/1988 and other security goes back to certain date later than 1988.  If I want to calculate relative strength based on the date of the last quote for the 'other security' as follows:
> 
> Relative Strength = (Pt/Mt) / (P0/M0)
> 
> where Pt is the security's price, Mt is the S&P500's value and P0 and M0 are the initial values (very 1st quote for security).
> 
> How do I determine P0, and then look the same number of bars back for S&P500.
> 
> I would like to do this for a number securities, so the date of the 1st quote will always be different.
> 
> Thanks
> 
> Levi
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/