Nearest $VIX Expiry Date

版本 1.0.0.0 (1.9 KB) 作者: Matthaeus
Provide the Next $VIX Expiry Date, Given a Single Calendar Date
124.0 次下载
更新时间 2015/7/18

查看许可证

Send a query date thought this function to return the next main-month $VIX futures/options expiration in datenum format. This is in fact slightly tricky to code, since holidays on both ends ($SPX and '30 days before') can impact the correct date in some years. Perhaps there is a more elegant way to code this, but the function has been checked against many years of actual dates. A secondary function is included that (unlike those in the finance toolbox) retains the query date if already a biz date but otherwise gives the immediate next or previous biz date. This can be used for other purposes but is needed by the Nearest_VIX function. To obtain historical or future $VIX expirations, simply submit different query dates.

引用格式

Matthaeus (2024). Nearest $VIX Expiry Date (https://www.mathworks.com/matlabcentral/fileexchange/52189-nearest-vix-expiry-date), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0