def rsi(self, n, array=False):
        """RSI指标"""
        result = talib.RSI(self.close, n)
        if array:
            return result
        return result[-1]
def rsi ( self , n , array = False ) : result = talib . RSI ( self . close , n ) if array : return result return result [ - 1 ]
RSI指标