protected override void OnWindowCreated(Window window)
{
NinjaTrader.Code.Output.Process("window created", PrintTo.OutputTab1);
}
//similarly with OnWindowDestroyed
to achieve that my specific functionality to initialize, instead of OnWindowCreated, I use it in State.Configure (in onstatechange, because state.active is also called 2nd time again before termination, so only State.Configure it the place where you can trigger function only once).

Comment