mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-13 12:00:16 +08:00
MAINT: For capital changes, support input of delta or target value
For target changes, calculate the delta using the portfolio value of the current minute
This commit is contained in:
@@ -408,7 +408,7 @@ class TradingAlgorithm(object):
|
||||
|
||||
self.benchmark_sid = kwargs.pop('benchmark_sid', None)
|
||||
|
||||
# A dictionary of capital change values keyed by timestamp
|
||||
# A dictionary of capital changes keyed by timestamp
|
||||
self.capital_changes = kwargs.pop('capital_changes', {})
|
||||
|
||||
def init_engine(self, get_loader):
|
||||
|
||||
Reference in New Issue
Block a user