Wrong information


It seems that sometimes the information get's mixed up. Like for example I will ask for account number and will receive account balance etc. This is especially difficult when it is of a different type which will then throw an exception. I guess somehow the data needs to be verified.


bfis108137 wrote Apr 16, 2013 at 6:29 AM

I just realized that I had the EA running twice. I guess you need to run each instance on a separate port with a separate handler.

xc wrote Sep 18, 2013 at 12:06 AM

eh I got the same issue, I'm already doing it on 2 accounts and terminal, if I have to use different port for each symbol, it's going to be a lot, but let's try

bfis108137 wrote Sep 18, 2013 at 9:34 AM

You have to use a different port for each one. I was looking at the possibility of adding the ports dynamically but I after about 30 mins of work I gave up due to time constraints. I think that would be a great feature. Rather than the library looking for the ports in the settings file, we should be able to set that in the app we are making.

xc wrote Sep 18, 2013 at 12:11 PM

Ok, I see thanks, I guess you are using specific EA script handlers for each symbol?
because I was using the default QuoteReceiver as explained in the doc

but that ends up messing also, even with multiple ports:


eGBPUSD = Bridge.GetTerminal(emitter, "GBPUSD");
rGBPUSD = Bridge.GetTerminal(receiver, "GBPUSD");
eEURUSD = Bridge.GetTerminal(emitter, "EURUSD");
rEURUSD = Bridge.GetTerminal(receiver, "EURUSD");

eGBPUSD.QuoteRecieved += emitter_QuoteRecieved;
rGBPUSD.QuoteRecieved += receiver_QuoteRecieved;
eEURUSD.QuoteRecieved += emitter_QuoteRecieved;
rEURUSD.QuoteRecieved += receiver_QuoteRecieved;

bfis108137 wrote Sep 18, 2013 at 1:18 PM

I am also using the same thing. I had to add a whole bunch of ports with unique names like QuoteListener1, QuoteListener2 etc. It's a hack but it works

vladkalos wrote Sep 30, 2013 at 6:19 AM

The Issue must be solved in TradePlatform 3.6

bfis108137 wrote Sep 30, 2013 at 9:08 AM

I don't think it's such a simple issue. The reason is that you have multiple platforms connecting on the same port. I don't know that the wcf is built to be able to differentiate between requests from the same ip address. I tend to think multiple ports is the only way but there should be a way to dynamically define the ports instead of getting them from a config file. Also is there a way to disconnect the hosts. Often if I have to restart the program, the hosts remain open. I have tried saving the Host objects in an array but that doesn't work.