NonWindowSafeInputTraceback (most recent call last)
<ipython-input-37-97e936fabd7c> in <module>()
----> 1 result = run_pipeline(make_pipeline(), '2015-05-05', '2015-05-05')
2 result
<ipython-input-36-acae6655596c> in make_pipeline()
4 Underlying = SPY_Close_Price()
5 Px = Underlying/Asset
----> 6 FastMA = SimpleMovingAverage(inputs=[Asset_Px], window_length=8)
7 #SlowMA = SimpleMovingAverage(inputs=[Px], window_length=34)
8 #Diff = np.abs(FastMA - SlowMA)
/build/src/qexec_repo/zipline_repo/zipline/pipeline/mixins.pyc in __new__(cls, inputs, outputs, window_length, mask, dtype, missing_value, ndim, **kwargs)
138 missing_value=missing_value,
139 ndim=ndim,
--> 140 **kwargs
141 )
142
/build/src/qexec_repo/zipline_repo/zipline/pipeline/term.pyc in __new__(cls, inputs, outputs, window_length, mask, *args, **kwargs)
472 mask=mask,
473 window_length=window_length,
--> 474 *args, **kwargs
475 )
476
/build/src/qexec_repo/zipline_repo/zipline/pipeline/term.pyc in __new__(cls, domain, dtype, missing_value, window_safe, ndim, *args, **kwargs)
129 ndim=ndim,
130 params=params,
--> 131 *args, **kwargs
132 )
133 return new_instance
/build/src/qexec_repo/zipline_repo/zipline/pipeline/term.pyc in _init(self, inputs, outputs, window_length, mask, *args, **kwargs)
480 self.window_length = window_length
481 self.mask = mask
--> 482 return super(ComputableTerm, self)._init(*args, **kwargs)
483
484 @classmethod
/build/src/qexec_repo/zipline_repo/zipline/pipeline/term.pyc in _init(self, domain, dtype, missing_value, window_safe, ndim, params)
267 # should set this flag to True.
268 self._subclass_called_super_validate = False
--> 269 self._validate()
270 assert self._subclass_called_super_validate, (
271 "Term._validate() was not called.\n"
/build/src/qexec_repo/zipline_repo/zipline/pipeline/mixins.pyc in _validate(self)
40 """
41 def _validate(self):
---> 42 super(PositiveWindowLengthMixin, self)._validate()
43 if not self.windowed:
44 raise WindowLengthNotPositive(window_length=self.window_length)
/build/src/qexec_repo/zipline_repo/zipline/pipeline/mixins.pyc in _validate(self)
85
86 def _validate(self):
---> 87 super(RestrictedDTypeMixin, self)._validate()
88 assert self.ALLOWED_DTYPES is not NotSpecified, (
89 "ALLOWED_DTYPES not supplied on subclass "
/build/src/qexec_repo/zipline_repo/zipline/pipeline/term.pyc in _validate(self)
538 for child in self.inputs:
539 if not child.window_safe:
--> 540 raise NonWindowSafeInput(parent=self, child=child)
541
542 def _compute(self, inputs, dates, assets, mask):
NonWindowSafeInput: Can't compute windowed expression SimpleMovingAverage((NumExprFactor(expr='(((x_0 + x_1) + (x_2)) + (x_3)) * (0.25)', bindings={'x_2': Latest((USEquityPricing.low::float64,), window_length=1), 'x_3': Latest((USEquityPricing.close::float64,), window_length=1), 'x_0': Latest((USEquityPricing.open::float64,), window_length=1), 'x_1': Latest((USEquityPricing.high::float64,), window_length=1)}),), window_length=8) with windowed input NumExprFactor(expr='(((x_0 + x_1) + (x_2)) + (x_3)) * (0.25)', bindings={'x_2': Latest((USEquityPricing.low::float64,), window_length=1), 'x_3': Latest((USEquityPricing.close::float64,), window_length=1), 'x_0': Latest((USEquityPricing.open::float64,), window_length=1), 'x_1': Latest((USEquityPricing.high::float64,), window_length=1)}).