def atr(self, n, array=False):
"""ATR??"""
result = talib.ATR(self.high, self.low, self.close, n)
if array:
return result
return result[-1]
# ----------------------------------------------------------------------
文章目录