Historical Volatility

版本 1.1.0.0 (2.2 KB) 作者: Josiah Renfree
Calculates the annualized historical volatility for a stock over the previous N trading days.
4.5K 次下载
更新 2010/10/15

查看许可证

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.

引用格式

Josiah Renfree (2026). Historical Volatility (https://ww2.mathworks.cn/matlabcentral/fileexchange/24811-historical-volatility), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Financial Toolbox 的更多信息
版本 已发布 发行说明
1.1.0.0

Fixed error in date handling

1.0.0.0