Why i get error with program?

Mar 17, 2013 at 11:31 PM
I write a program on c# and copy prefernces from shell.exe.confing to my app.config. After add EA to EURUSD chart with preferences:
System_NET_HandlerName="QuoteListener";
NET="###";
System_NET_Server="127.0.0.1";
System_NET_Port=2007;

And after all, i'll get error in MT4 logs:
2013.03.18 02:30:55 Expert_NET EURUSD,H4: Net Bridge Error: Server closed connection.
How to fix this?
Mar 19, 2013 at 11:30 PM
Edited Mar 20, 2013 at 12:08 AM
metaTrader4 = Bridge.GetTerminal(ACCOUNTNUMBER ??? , "EURUSD");