Next, the following terms will be used:
Master PC – the PC on which NinjaTrader with the Network Bridge(TCP/IP Server) is running;
Slave PC – PC on which Metatrader with Expert Advisor(TCP/IP Client) is running.
Before starting work with the Bridge, you need to make some changes in the settings of the MT terminal. This can be done in the terminal settings: Main Menu->Tools->Options, tab ‘Expert Advisors’.
It is necessary to allow algorithmic trading, to allow the import of DLL files in Metetrader 5(4) and enable checkbox “One Click Trading” on the “Trade” tab:
For the properly work of the expert, add the necessary symbols to the “Market Watch” window: