code: def ema(self, np_array, n, array=False):
          
          if n < 2:
              result = np_array
          else:
              result = talib.EMA(np_array, n)
          if array:
              return result
          return result[-1]
docs: 移动均线