Hi,
I'm using this code, code which I've seen used in other examples:
import talib as ta
globsma = ta.SMA(timeperiod = 30)
def initialize(context):
context.stocks = sid(24)
def handle_data(context, data):
sma = globsma( data )
but I'm getting this error:
Error Runtime exception: TypeError: SMA() takes at least 1 positional argument (0 given)
Any ideas how I can get this code to work please?
Thanks.