(df, n)
return out(SETTINGS, df, result)
Ease of Movement
Ease of Movement
Ease of Movement
def EOM(df, n):
    """
    Ease of Movement
    """
    EoM = (df['High'].diff(1) + df['Low'].diff(1)) * (df['High'] - df['Low']) / (2 * df['Volume'])
    result = pd.Series(EoM.rolling(n).mean(), name='EoM_' + str(n))
    return out(SETTINGS, df, result)
def EOM ( df , n ) : EoM = ( df [ 'High' ] . diff ( 1 ) + df [ 'Low' ] . diff ( 1 ) ) * ( df [ 'High' ] - df [ 'Low' ] ) / ( 2 * df [ 'Volume' ] ) result = pd . Series ( EoM . rolling ( n ) . mean ( ) , name = 'EoM_' + str ( n ) ) return out ( SETTINGS , df , result )