Fixes event window length in example algo.

It was using the old days parameter.
This commit is contained in:
Eddie Hebert
2012-11-20 16:38:56 -05:00
parent 9f715258e6
commit 0ba6f88a84
+2 -2
View File
@@ -34,10 +34,10 @@ class DualMovingAverage(TradingAlgorithm):
# Add 2 mavg transforms, one with a long window, one
# with a short window.
self.add_transform(MovingAverage, 'short_mavg', ['price'],
days=short_window)
window_length=short_window)
self.add_transform(MovingAverage, 'long_mavg', ['price'],
days=long_window)
window_length=long_window)
# To keep track of whether we invested in the stock or not
self.invested = False