marked a todo for a calculation bug

This commit is contained in:
fawce
2012-05-30 23:55:25 -04:00
parent ef763f28d0
commit a4ea3e3343
+2
View File
@@ -187,6 +187,8 @@ class RiskMetrics():
return period_returns, returns
def calculate_volatility(self, daily_returns):
# TODO: we should be using an annualized number for the
# square root, not the days in the period.
return np.std(daily_returns, ddof=1) * math.sqrt(self.trading_days)
def calculate_sharpe(self):