Python round to nearest (ATM strike for every instrument )

 def round_to_nearest(number, nearest):

    return round(number / nearest) * nearest

Comments

Popular posts from this blog

MQL5 : Get current trading session

MQL5: Create Horizontal line with give price