Error 10017 means trading is disabled on the server (broker) side.
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
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.