Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 8/28/2005(UTC) Posts: 25
|
Hi,
Would anyone be able to code in MSFL the covariance formula ?
Here is the equation (excerpt from Excel) :
Any help would be greatly appreciated,
Thanks in advance :wink:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Hey Imothep-
Post what you have so far and let's see if we can help you figure this out. Are you trying to compare 2 securities or 2 folders of securities? What data are you comparing? OHLCV or comething else? Your request is vague.
Peruse the posting guidelines to get the most out of your requests.
Thanks!
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 8/28/2005(UTC) Posts: 25
|
Oh sorry g_stockman :oops:
Actually, I am trying to calculate the Bêta. I know the formula is given in the "Indicator QuickList" but it is inaccurate.
Thanks for your help :wink:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
What is inaccurate about it? Inaccuarate compared to what?
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 8/28/2005(UTC) Posts: 25
|
g_stockman wrote:What is inaccurate about it? Inaccuarate compared to what?
Hi g_stockman,
I meant the formula provided by Metastock (see below) to calculate the Bêta is wrong.
Thanks for your help
(( 21 * Sum( ROC( CLOSE,1,%) * ROC( INDICATOR,1,%),21))-
( Sum( ROC( CLOSE,1,%),21) * Sum( ROC( INDICATOR,1,%), 21)))
/
(( 21 * Sum( Pwr( ROC( INDICATOR,1,%),2),21)) -
Pwr( Sum( ROC( INDICATOR,1,%),21),2))
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 8/28/2005(UTC) Posts: 25
|
Hi g_stockman,
I am really very sorry but in fact the Bêta formula provided by Mestastock is correct ! My fault :oops: :oops: :oops:
(( 21 * Sum( ROC( CLOSE,1,%) * ROC( INDICATOR,1,%),21))-
( Sum( ROC( CLOSE,1,%),21) * Sum( ROC( INDICATOR,1,%), 21)))
/
(( 21 * Sum( Pwr( ROC( INDICATOR,1,%),2),21)) -
Pwr( Sum( ROC( INDICATOR,1,%),21),2))
You have to replace the variable "INDICATOR" by the index (i.e. Nasdaq Composite).
Sorry for my mistake :oops:
|
|
|
|
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.