Can I have some idea on how Ninja organizes its threads that execute the strategy?
I do know that single instance of running strategy uses single thread but I have an idea and would like to see if I can execute strategy on multiple instruments simultaneously in same NinjaTrader execution instance.
Reason I am asking this is because I want to implement lock / PulseAll constructs to thread safe update trade info into some 3rd party. What this means is that I'd have in OnBarUpdate and OnOrder overrides.
lock (this)
{
// Do Something
Monitor.PulseAll(this);
}

Comment