Click here to Login








Average Correlation Index - S&P 500

by Tom Huggens, 5385 days ago
Share |






This composite index calculates for each stock, its close price correlation with the close price of an index. It then averages the results and creates the Average Correlation Index, whose symbol name is "Correl_10bars".

For each trading bar and for each stock (only stocks whose close prices are above two are selected), the correlation between this stock and the index is calculated for the preceding 10 bars. The index involved in the correlation is the "^GSPC" or the S&P 500.

You can update both, the correlation period and the index symbol name. You can also modify the list of symbols used by this composite.
In order to change the correlation period, you will have to update the composite item and change its formula. The first line "period = 10;" defines the period.
In order to change the index, which is currently set to S&P 500, replace "^GSPC" and type in the index symbol name you want to use. As an example, if you want to calculate the average correlation between stocks listed on the Bombay Stock Exchange and this exchange main index, type in "^BSESN" as the index symbol name (Use BSE Sensex to download historical end-of-day for the Bombay Stock Exchange Sensitive Index). For the National Stock Exchange, you should use "^S&P_CNX_Nifty" instead of "^GSPC" (NSE Nifty - S&P CNX Nifty).

A high value for the Average Correlation Index may indicate that many stocks are correlated with the S&P 500. And a low value for this composite indicates that there is a low correlation between individual stocks and the S&P 500 index.

From 2001 to 2009, a simple strategy that buys the S&P 500 when its 10-bar rate-of-return is negative and the Average Correlation Index is higher than 0.5 (50%) and exits the position after 5 bars, generated 35 trades and produced an average gain of 0.356% per bar.
A simple strategy that shorts the S&P 500 when its 10-bar rate-of-return is positive and the Average Correlation Index is higher than 0.5 and exits the position after 5 bars, generated 23 trades and produced an average gain of 0.245% per bar.


Share This ->
Share |


You have to log in to bookmark this object
What is this?




Type: Composite Index

Object ID: 388


Country:
United States

Market: Stock Market

Style:
Technical Analysis

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Short Index - Part 1

Trend Following and Moving Averages

Put-Call Ratio for Individual Stocks

Historical Market Data

What's new in this trading software?

Historical volatility estimators

Short Selling Stocks

Stock split & dividend

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






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.