I think there is a bug in the code where the day has a leading zero. For instance, today, the "ddmmyyyy" is 07102010. When the for loop uses the str2double feature, I think the leading zero gets truncated such that when it is recast to a string, the data is of the form 7102010 instead of 07102010, and the hist_stock_data function does not handle this.
Comment only
24 Sep 2010
Historical Volatility
Calculates the annualized historical volatility for a stock over the previous N trading days.
Comment only