Hi All,
As a side project, I am working on creating a stock index comprised of 25 or so stocks and tracking their change.
To set this up, I loaded the closing prices of the stocks for the past 6 months, and weighted each of the stocks a certain way (ex. .1, .015, .2 of the entire index) based off of market share. Then, I multiplied the weight by the stock price and added them up to find the index price. I applied the formula for all the trading days and graphed the index.
What I want to do now is automate the process so that I can load the closing prices for each stock for trading days (not every day, because no trading on weekends or holidays) automatically into the spreadsheet so that each day, it calculates the index price by itself based off the previous close.
Does anyone know how I would go about this?
In terms of getting the data, there is a way to export as csv from Yahoo Finance using =NUMBERVALUE(WEBSERVICE("http://finance.yahoo.com/d/quotes.csv?s= [Ticker Symbol] &f= [Data Type]").
(but I don't know how to automate).
If anyone can help guide me, I would really appreciate it.
As a side project, I am working on creating a stock index comprised of 25 or so stocks and tracking their change.
To set this up, I loaded the closing prices of the stocks for the past 6 months, and weighted each of the stocks a certain way (ex. .1, .015, .2 of the entire index) based off of market share. Then, I multiplied the weight by the stock price and added them up to find the index price. I applied the formula for all the trading days and graphed the index.
What I want to do now is automate the process so that I can load the closing prices for each stock for trading days (not every day, because no trading on weekends or holidays) automatically into the spreadsheet so that each day, it calculates the index price by itself based off the previous close.
Does anyone know how I would go about this?
In terms of getting the data, there is a way to export as csv from Yahoo Finance using =NUMBERVALUE(WEBSERVICE("http://finance.yahoo.com/d/quotes.csv?s= [Ticker Symbol] &f= [Data Type]").
(but I don't know how to automate).
If anyone can help guide me, I would really appreciate it.