Hi, I am trying to run the following code
class PairTrades(CustomFactor):
inputs = [Returns(window_length=YYY), EWMA([USEquityPricing.close], window_length=ZZZ,
decay_rate=np.exp(np.log(0.5) / 10))]
window_length = XXX
but I keep getting the following error for various values of XXX, YYY, ZZZ
NonWindowSafeInput: Can't compute windowed expression PairTrades((Returns((USEquityPricing.close::float64,), window_length=20), ExponentialWeightedMovingAverage((USEquityPricing.close::float64,), window_length=20)), window_length=400) with windowed input ExponentialWeightedMovingAverage((USEquityPricing.close::float64,), window_length=20).
can someone please explain how these 3 numbers are linked to each other ?
Thanks