mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 01:01:14 +08:00
Updates pairtrade example to use window_length.
Batch transforms now use window_length instead of days.
This commit is contained in:
@@ -57,7 +57,7 @@ class Pairtrade(TradingAlgorithm):
|
||||
self.invested = 0
|
||||
self.window_length = window_length
|
||||
self.ols_transform = ols_transform(refresh_period=self.window_length,
|
||||
days=self.window_length)
|
||||
window_length=self.window_length)
|
||||
|
||||
def handle_data(self, data):
|
||||
######################################################
|
||||
|
||||
Reference in New Issue
Block a user