PERF: Send pre-adjusted returns to information_ratio

This commit is contained in:
John Ricklefs
2016-08-26 16:27:03 -04:00
parent c713d4798f
commit e22edbebae
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -279,9 +279,11 @@ algorithm_returns ({algo_count}) in range {start} : {end} on {dt}"
risk_adj_returns,
_downside_risk=self.downside_risk[dt_loc]
)
# 0.0 for the second argument allows the passing of already-adjusted
# returns for the first argument.
self.information[dt_loc] = information_ratio(
algorithm_returns_series,
benchmark_returns_series
risk_adj_returns,
0.0
)
self.max_drawdown = max_drawdown(
algorithm_returns_series
+4 -2
View File
@@ -131,9 +131,11 @@ class RiskMetricsPeriod(object):
risk_adj_returns,
_downside_risk=self.downside_risk
)
# 0.0 for the second argument allows the passing of already-adjusted
# returns for the first argument.
self.information = information_ratio(
self.algorithm_returns,
self.benchmark_returns
risk_adj_returns,
0.0
)
self.beta = beta(
self.algorithm_returns,