You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to control my MT5 accounts with Python/MetaTrader5 programs. I have the following order request and its values in Python dictionary format.
request = { "action": mt5.TRADE_ACTION_DEAL, "symbol": symbol, "volume": volume, "type": action_type, "price": price, "deviation": deviation, "sl": action_sl, "tp": action_tp, "magic": 234000, "comment": "Create position", "type_time": mt5.ORDER_TIME_DAY, "type_filling": mt5.ORDER_FILLING_IOC, } {'action': 1, 'symbol': 'XAUUSD', 'volume': 0.01, 'type': 0, 'price': 1807.61, 'deviation': 1, 'sl': 1806.11, 'tp': 1811.61, 'magic': 234000, 'comment': 'Create position', 'type_time': 1, 'type_filling': 1}Somehow, the result value of mt5 order_check is None in my 2 real MT5 accounts while it has valid values in my demo account. Does anyone know what's the reason and how to address it? Thanks.