def smaShort(self):
while True:
ohlcv_candles = bitmex2.bitmex.fetch_ohlcv(self, symbol= 'XBTUSD', timeframe= '5m')
mas = []
mas = ohlcv_candles.rolling(window=5).mean()
return mas#[-1]
when trying to call smaShort function
logger.info("sma short value:" (self.smaShort()))
I get the error smaShort is not callable, anybody know what I am doing wrong?