I would like to create some simulated historical options data, and need to calculate historical volatility from historical stock prices. Is there a built in function to do this? Any formulas?
+2
A:
The only built-in functions I found were in the Financial Toolbox:
Other than that, here are some other links that may help:
- Trading with MATLAB blog
- Historical Volatility by Josiah Renfree on the MathWorks File Exchange (link from ShinTakezou's comment above)
gnovice
2010-06-14 20:45:51
Thanks, the script from Mathworks got me on the right track.
CptanPanic
2010-06-14 22:22:14