Pankaj Jora / Publications
Forum
issue in placing an order using python
this is my code and it is not placing an order:- import MetaTrader5 as mt5 import time mt5 .initialize() risk_percentage = 1 .0 balance = mt5 .account_info().balance risk_amount = balance * ( risk_percentage / 100.0 ) while True : candle_data = mt5 .copy_rates_from_pos( "XAUUSDm" , mt5