Skip to content

Commit

Permalink
Merge pull request mementum#369 from oudingfan/master
Browse files Browse the repository at this point in the history
Replace self.p.compression to self.compression in analyzer
  • Loading branch information
backtrader authored Jul 14, 2018
2 parents 56dab94 + 8f537a1 commit 0c01ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backtrader/analyzers/logreturnsrolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def start(self):
else:
self._fundmode = self.p.fund

self._values = collections.deque([float('Nan')] * self.p.compression,
maxlen=self.p.compression)
self._values = collections.deque([float('Nan')] * self.compression,
maxlen=self.compression)

if self.p.data is None:
# keep the initial portfolio value if not tracing a data
Expand Down

0 comments on commit 0c01ed4

Please sign in to comment.