You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Nearest $VIX Expiry Date (https://se.mathworks.com/matlabcentral/fileexchange/52189-nearest-vix-expiry-date), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.86 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
