i loaded the free simulating version and read through the manual to get into the program and how to use ninjascript, but there is one thing i still not understand:
For every tick(or end-of-bar) onbarupdate is called, and i can distinguish different instruments with barsinprogress. But how can i distinguish different datafeeds/brokers?
As i see it, the broker is somewhat linked to an account, and you set the account for the strategy so this is the account the strategy trades on. It is not possible to trade to another account/broker within this strategy then?
Second, how can i get data from two different feeds?
For example i have ZenFire as primary feed and the second feed in the row is let's say IB. Now all my data come from ZenFire, but how can i access the IB data feed when i want to? (Without changing the order of the feeds. So i don't care about the order, i just want from both stream all the input. Or from one feed the steady input with the possibility to ask the prices on the other stream)
Thanks for response,
greetings
Comment