logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
henry1224  
#1 Posted : Thursday, April 7, 2005 1:55:49 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
{This formula calculates Beta which is a measure of volatility of one security against another. This is typically used to measure the volatility of a stock against an index like the S&P 500. A value greater than one indicates the stock is more volatile than the index. Note, this formula is set to calculate beta over 21 periods. To change the time periods replace each instance of 21 in the formula with the desired number of periods.} A:=Security("C:\\Metastock Data\\BM Data\\.SPX",C); ((21 * Sum(ROC(C,1,%) * ROC(A,1,%),21))- (Sum(ROC(C,1,%),21) * Sum(ROC(A,1,%),21))) / ((21 * Sum(Pwr(ROC(A,1,%),2),21)) - Pwr(Sum(ROC(A,1,%),21),2)) Make sure that the security is in the proper folder
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.