Nearest $VIX Expiry Date
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.
Cite As
Matthaeus (2025). Nearest $VIX Expiry Date (https://www.mathworks.com/matlabcentral/fileexchange/52189-nearest-vix-expiry-date), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Computational Finance > Financial Toolbox >
- MATLAB > Language Fundamentals >
- MATLAB > Language Fundamentals > Data Types > Dates and Time >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |