You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Performs volatility analysis of historical time series of commodity forward curves.
The historical data is stored in an object with a range of methods that plots, calculates returns, volatility: Simple Moving Average and Exponentially Weighted Moving Average and Principal Component Analysis.
The simple example is used to show how commodity roll, i.e. when the monthly contract expires affects the returns and subsequent volatility profile across tenors.
Run the script:
ReturnAnalysis.m
This will plot the results.
Cite As
Ahmos Sansom (2026). Commodity Roll Analysis (https://in.mathworks.com/matlabcentral/fileexchange/61672-commodity-roll-analysis), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1010 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
