Closed venzen closed 1 year ago
Well, the answer is right there in the error message: error code 4112.
4112 | ERR_TRADE_EXPERT_DISABLED_BY_SERVER | Automated trading by Expert Advisors/Scripts disabled by trade server
So after changing to a broker account that allows the use of EAs, Redis commands work just fine. Thank you for a great tool @dingmaotu
I can connect to the Mt4ServerRaw via a redis-py. I'm able to send the command
ORDERS
and get a list of open trades. When I give theBUY
,SELL
orCLOSE
commands the server acknowledges the command in the MT4 Terminal's "Experts" tab, for example:2023.01.23 10:56:54.046 Mt4ServerRaw XAUUSD,M15: >>> Received command: [b"SELL",b"XAUUSD",b"0.25"]
However, my redis client receives the response:
Failed to sell at market with error id (4112): object already exists
I get similar responses (object already exists) for
BUY
andCLOSE
. Any ideas?