Click here to Login





                                                   Beta and Correlation

  0

0
allan nathan
2013-07-21 18:35:22


Hi,
would anyone hav the formulas for Beta and correlation

thanks in advance

Allan



QuantShare
2013-07-22 06:43:30

  0

Correlation function is built-in QuantShare. The function name is "correl".
You can get beta function here: Beta





Beta (by Stefan Kroscen, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

allan nathan
2013-07-23 23:55:25

  0

hi,
i am pretty sure the beta formula is incorrect..would you check?

checking on correlation

Allan



QuantShare
2013-07-24 07:11:04

  0

Why do you think the formula is incorrect.
It is covariance(r1, r2) / var(r2)

As described, the beta function requires the covariance indicator which can be downloaded here: Covariance





Covariance (by Stefan Kroscen, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

allan nathan
2013-07-24 18:04:21

  0

when i check the values for beta in qs vs other programs the values are different.
i downloaded the covariance formula.

is this not correct?

temp1 = GetSeries("spy",close);
a = beta(close,temp1,252);
Plot(a, "beta", colorBlack, chartLine, StyleSymbolNone);



QuantShare
2013-07-25 03:49:49

  0

Your formula as well as the covariance function are correct.

I have implemented a new covariance function using another formula and the result is the same:
http://www.quantshare.com/item-1336




allan nathan
2013-07-25 05:47:01

  0

when i plot the beta and choose the SPy for both symbols in the beta formula,I get .65.i should be getting 1.Dont you agree?


QuantShare
2013-07-25 06:41:17

  0

I am getting 1 when plotting your formula:

temp1 = GetSeries("spy",close);
a = beta(close,temp1,252);
a = round(a, 10);
Plot(a, "beta", colorBlack, chartLine, StyleSymbolNone);




allan nathan
2013-07-25 13:37:09

  0

my apologies..i was looking at a heikan ashi chart and it distorted the values


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
ETF Data: NAV - PE- Fees - Assets - Yield - Beta
Avgerage Correlation
Correlation Matrix - 41 Major ETFs
Forex Correlation Matrix
Stock Correlation with its Industry - Change over time

How-to Lessons
How to create a correlation matrix of several securities
How to screen for stocks having a high correlation with the Dow J...
How to download EOD quotes for active and valid stocks only
How to create trading rules based on Put and Call volume data
How to plot support and resistance lines automatically

Related Forum Threads
Beta and Correlation
correlation matrix DAX, AEX and CAC40
Beta Testing Quantshare 'Real Time', Forex connectivity issues
custom field value is function beta sma
Correlation between indicators

Blog Posts
Intermarket Analysis - Correlation and Trading Strategies
Backtesting a Strategy Based on Bond and Stock Index ETFs
Beta release
Ranking stocks based on their correlation with the S&P 500 Index
Select the best ETFs combination to maximize your return and redu...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.