AlexhatorK / Publications
Forum
Metatrader5 lot_size computation with stop_loss as price
I am trying to compute lot size having stop loss (as price) but the lot size ends up quite big and eventually, I get an error: Error code: 10014 Error message: Invalid volume My current code is: import MetaTrader5 as mt5 def calculate_lot_size(symbol, stop_loss_price): # Connect to the