Enable autotrading in Python

 

Hi,

I made some automation to create a new machine everyday, and everytime I install metatrader from my broker, however metatrader algo-trading is always disabled when it starts a new mt5.

Consequently, my orders returns:

10027 - TRADE_RETCODE_CLIENT_DISABLES_AT - Autotrading disabled by client terminal

Is there a way in python to enable algo trade or some config file inside the machine to be modified in order to avoid doing this manually everyday...

Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
  • www.mql5.com
All requests to execute trade operations are sent as a structure of a trade request MqlTradeRequest using function OrderSend() . The function...