def calculate_up_moves(high_data):
    """
    Up Move.

    Formula:
    UPMOVE = Ht - Ht-1
    """
    up_moves = [high_data[idx] - high_data[idx-1] for idx in range(1, len(high_data))]
    return [np.nan] + up_moves
def calculate_up_moves ( high_data ) : up_moves = [ high_data [ idx ] - high_data [ idx - 1 ] for idx in range ( 1 , len ( high_data ) ) ] return [ np . nan ] + up_moves
Up Move.

    Formula:
    UPMOVE = Ht - Ht-1