BUG: Issue #801 Initializing TradingAlgorithm Object Does Not Set

_analyze Method in algorithm.py

Added one line to check for the keyword argument 'analyze' and set the
the _analyze method when a TradingAlgorithm object is initialized
within a script.
This commit is contained in:
puppy
2015-11-01 09:10:17 -06:00
committed by Richard Frank
parent 7eeacbe0e9
commit e50858315b
+1
View File
@@ -267,6 +267,7 @@ class TradingAlgorithm(object):
self.algoscript = kwargs.pop('script', None)
self._initialize = None
self._analyze = kwargs.pop('analyze', None)
self._before_trading_start = None
self._analyze = None