mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-15 12:15:22 +08:00
new client base class, adding order function. committing to allow branch
This commit is contained in:
@@ -30,7 +30,7 @@ class MovingAverage(BaseTransform):
|
||||
index = 0
|
||||
for cur_event in self.events:
|
||||
cur_date = qutil.parse_date(cur_event['dt'])
|
||||
if(cur_date - event_date):
|
||||
if(cur_date - event_date) >= self.window:
|
||||
self.events.pop(index)
|
||||
self.current_total -= cur_event['price']
|
||||
index += 1
|
||||
|
||||
Reference in New Issue
Block a user