mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-04 15:03:39 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user