def SMA(self, param): M = param[2] if param[2] == 0: M = 1 return pd.ewma(param[0], span = 2 * param[1] / M - 1)