Historical Volatility
by Josiah Renfree
21 Jul 2009
(Updated 15 Oct 2010)
Calculates the annualized historical volatility for a stock over the previous N trading days.
|
Watch this File
|
| File Information |
| Description |
This program calculates the annualized historical volatility for one or more stocks over a user-specified number of N trading days. The program uses daily closing prices in the calculations. If not specified, the program defaults to N=20 previous trading days.
The user may supply either a single ticker symbol or a cell array of ticker symbols. Using the supplied N, the program will then calculate the historical volatility for each stock.
In order to run the program, the function 'hist_stock_data.m' must be downloaded and stored in the same directory. This function may be found in my MathWorks File Exchange. |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
| Other requirements |
This program downloads data from the Yahoo! finance service. Therefore, the user's computer must be connected to the Internet |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 15 Oct 2010 |
Fixed error in date handling |
|
Contact us at files@mathworks.com