-
Notifications
You must be signed in to change notification settings - Fork 46
TestExpert
There are two test expert advisors:
- one for the the compiled DLL OTMql4Zmq: MQL4/Experts/OTMql4/OTZmqCmdEA.mq4 We are having problems with the receiving of messages with the compiled DLL: the messages get received, but shortly afterwards, Mt4 crashes.
- one for the Python PyZmq: MQL4/Experts/OTMql4/OTPyTestZmqEA.mq4 We are having problems with the receiving of messages with the Python PyZmq: the first 16 bytes of a message published from OTMql4Zmq are sometimes (not always) garbled, including nulls. The rest of the message is fine.
The workaround it to pad the message with 16 bytes. See: https://github.com/OpenTrading/OTMql4Zmq/issues/1
During debugging, we have had cases of the expert not being able to be removed: this is not normally the case, only when we have bad code.
If this happens, it may precent Mt4 from exiting cleanly. If so, you must kill Mt4, and then manually edit the profile for that chart to remove the expert. Go to the directory of your Mt4 installation and read the file `lastprofile.ini` to find out what profile you are currently using. Then go into that directory and search the `chr` files for the ones that contain an `<expert>` section. Remove the section that starts with `<expert>` and ends with `</expert>`, inclusive. Then restart Mt4.