Hello, im Jesús from Spain. Im very noob on quantopian and python in general,
i need help with my first steps in this world
roc1 = talib.ROC(prices[stock], timeperiod=11)[-1]
log.info("Roc1 - %.2f" %roc1 )
roc2 = talib.ROC(prices[stock],timeperiod=14)[-1]
log.info("Roc2 - %.2f" %roc2)
roc = roc1 + roc2
log.info("Suma de ROCs - %.2f" %roc)
cop = talib.WMA(roc, timeperiod=10)
log.info("Coppock - %.2f" %cop)
cops[stock] = cop
current = curr[stock]
closes = close[stock]
Im want to create a coppock curve in python, all code its ok but...
cop = talib.WMA(roc, timeperiod=10)
this line is wrong... why ?
TypeError: Argument 'real' has incorrect type (expected numpy.ndarray, got numpy.float64)
There was a runtime error on line 39.
Thanks for all, and sorry for my english.