I am asking this becasue the document says in Lines coupling, we should use ( ) notation after the larger timeframe indicator, sma1(), see below. But my test shows that if I omit ( ),that is using sma1, I get same result. Is there something wrong with my result?
params = dict(period=20)
def __init__(self): # data0 is a daily data sma0 = btind.SMA(self.data0, period=15) # 15 days sma # data1 is a weekly data sma1 = btind.SMA(self.data1, period=5) # 5 weeks sma self.buysig = sma0 > sma1() def next(self): if self.buysig: print('daily sma is greater than weekly sma1')