Skip to content

EA inputs & ports

Open the EA’s properties (double-click the EA name on the chart, or re-attach it) and go to the Inputs tab.

Input Default Description
HTTP/REST port 81 REST API and WebSocket streams
Enable legacy ports true Open the legacy command and data ports
Legacy command port 77 JSON command port
Legacy data port 78 Streaming data port
Allow remote connections false false = only programs on this computer; true = listen on all network interfaces (Professional and Unlimited plans)
Polling interval (ms) 10 How often the EA checks sockets and streams
Log every request true Write each request to the Experts tab
Demo accounts only true Refuse trading commands unless the account is a demo account
Max lot per order 0 Upper limit for VOLUME (0 = no limit)
Max rows 50000 Upper limit of rows returned by history, tick and calendar calls

Each EA needs its own ports. For example:

MT5 #1 MT5 #2 MT5 #3 MT5 #4
REST / WebSocket 81 82 83 84
Legacy commands 71 73 75 77
Legacy data 72 74 76 78

After changing ports, check the Experts tab: it should list every port as listening.