(df, n, price='Close')
return out(SETTINGS, df, result)
Momentum
Momentum
Momentum
def MOM(df, n, price='Close'):
    """
    Momentum
    """
    result=pd.Series(df[price].diff(n), name='Momentum_' + str(n))
    return out(SETTINGS, df, result)
def MOM ( df , n , price = 'Close' ) : result = pd . Series ( df [ price ] . diff ( n ) , name = 'Momentum_' + str ( n ) ) return out ( SETTINGS , df , result )