I have a couple of questions regarding strategies and threads:
1. Does each strategy run in its own thread? 2. Can new threads be spawned in a strategy? 3. If new ticks come in while the onTick method is still executing, are those ticks ignored or queued up?
User rating: 0
Joined: Fri 27 May, 2011, 18:24 Posts: 2 Location: US
Another Question:
* Does each instance of a strategy run independent of each other? (ie. Does each call to client.startStrategy() run on a separate virtual account and not the same account?)
They run on the same account. In fact if you run multiple strategies against live data from the same IClient instance and open JForex client you shall see orders from all of the strategies.