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 版本兼容性
平台兼容性
Windows macOS Linux类别
- Computational Finance > Financial Toolbox >
- MATLAB > Language Fundamentals >
- MATLAB > Language Fundamentals > Data Types > Dates and Time >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |