mikembb wrote:
skuvv wrote:
mikembb wrote:
So, that means, I can only connect one execution provider at a time. I thought, I can use the DataProvider class and activate the providers there individually and then create Orders for each provider.
Can you please confirm that?
No, wrong, please read my previous message again.
You can able to connect multiple providers and retrieve market data from them or send orders to them.
We have demo solution named SMACrossover_, look on this.
Could you specify for me again, what I could find in "SMACrossover_" specifically - since I could not see the part, where I can connect to multiple providers or have market orders send to different providers. Could you let me know which of the 4 projects within that solution shows that?
Thanks
Mike
SMACrossover_ was mentioned because type Strategy_ allow you to add instrument to strategy with specific provider.
So instead of
Code:
strategy.Add(instrument1);
strategy.Add(instrument2);
in realtime scenario of SMACrossover_ you can use:
Code:
strategy.Add(instrument1, provider1);
strategy.Add(instrument1, provider2);
where provider1 and provider2 can be any of providers.
At result, strategy will receive market data from both provider1 and provider2.