10017 Error New comment Argden 2022.01.28 16:51 Hello everyone, I have started programming bot for traiding.I use Python IDLE for opening MQL5.Broker: TMS BROKERS. When i try to open a trade i recieve 10017 error: retcode=10017, comment='Trade disabled'. Algo Traiding is ON in MQL5. Tools -> Options -> Strategies -> Allow Algo Traiding - this is also checked. I am using this code to open trade: "request = { "action": mt5.TRADE_ACTION_DEAL, "symbol": "EURUSD", "volume": 4.0, "type": mt5.ORDER_TYPE_BUY, "price": mt5.symbol_info_tick("EURUSD").ask, "sl": 0.0, "tp": 0.0, "deviation": 20, "magic": 234000, "comment": "python script open", "type_time": mt5.ORDER_TIME_GTC, "type_filling": mt5.ORDER_FILLING_IOC, } order = mt5.order_send(request) print(order)" Is anyone know how to fix this problem?Thank you. Error code 10017 when using US broker AMP Getting 10017 and 10027 error codes with MT5 Error 10017 - Auto Trading not enabled Alain Verleyen 2022.02.03 04:22 #1 Error 10017 means trading is disabled on the server (broker) side. New comment
Hello everyone,
I have started programming bot for traiding.
I use Python IDLE for opening MQL5.
Broker: TMS BROKERS.
When i try to open a trade i recieve 10017 error: retcode=10017, comment='Trade disabled'.
Algo Traiding is ON in MQL5.
Tools -> Options -> Strategies -> Allow Algo Traiding - this is also checked.
I am using this code to open trade:
"request = { "action": mt5.TRADE_ACTION_DEAL, "symbol": "EURUSD", "volume": 4.0, "type": mt5.ORDER_TYPE_BUY, "price": mt5.symbol_info_tick("EURUSD").ask, "sl": 0.0, "tp": 0.0, "deviation": 20, "magic": 234000, "comment": "python script open", "type_time": mt5.ORDER_TIME_GTC, "type_filling": mt5.ORDER_FILLING_IOC, } order = mt5.order_send(request) print(order)"Is anyone know how to fix this problem?
Thank you.