Skip to content
Browse files

added a reference to strategy class to OptReturn

  • Loading branch information...
verybadsoldier committed Mar 4, 2018
1 parent 5ceeb29 commit f03a0ed115338ed8f074a942f6520b31c630bcfb
Showing with 1 addition and 1 deletion.
  1. +1 −1 backtrader/
@@ -1322,7 +1322,7 @@ def runstrategies(self, iterstrat, predata=False):
if attrname.startswith('data'):
setattr(a, attrname, None)

oreturn = OptReturn(strat.params, analyzers=strat.analyzers)
oreturn = OptReturn(strat.params, analyzers=strat.analyzers, strategycls=type(strat))

return results

0 comments on commit f03a0ed

Please sign in to comment.
You can’t perform that action at this time.