(df, n)
return out(SETTINGS, df, result)
Force Index
Force Index
Force Index
def FORCE(df, n):
    """
    Force Index
    """
    result = pd.Series(df['Close'].diff(n) * df['Volume'].diff(n), name='Force_' + str(n))
    return out(SETTINGS, df, result)
def FORCE ( df , n ) : result = pd . Series ( df [ 'Close' ] . diff ( n ) * df [ 'Volume' ] . diff ( n ) , name = 'Force_' + str ( n ) ) return out ( SETTINGS , df , result )