Advanced MTsocketAPI Configuration

MTsocketAPI listens on ports:

  • TCP 77 (Commands)
  • TCP 78 (Data)

We can change these ports used by MTsocketAPI using the Input tab:

If we have multiple Metatrader 5 applications running on the same machine we will need to use different ports.

For example, if we have 4 Metatrader applications running in the same machine we can use the following ports:

MT5 (1)MT5 (2)MT5 (3)MT5 (4)
Command TCP Port71737577
Data TCP Port72747678

Note: Always check in the Expert tab if the new selected ports were opened successfully:

The Account Precision Digits variable is used to show the account balance, etc with this number of digits. Don’t change this value if you are not sure about the implications.