mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 17:05:35 +08:00
added cumulative risk measures to the
datapanel produced from perf frames.
This commit is contained in:
@@ -499,6 +499,7 @@ class TradingAlgorithm(object):
|
||||
perf['daily_perf'].update(
|
||||
perf['daily_perf'].pop('recorded_vars')
|
||||
)
|
||||
perf['daily_perf'].update(perf['cumulative_risk_metrics'])
|
||||
daily_perfs.append(perf['daily_perf'])
|
||||
else:
|
||||
self.risk_report = perf
|
||||
|
||||
Reference in New Issue
Block a user