With
gAccountSelector = Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector; gAccount = gAccountSelector.SelectedAccount;
Do I access an account.
NinjaTrader.Gui.Tools.InstrumentSelector instrumentSelector = (Window.GetWindow(ChartControl.Parent).FindFirst(" ChartTraderControlInstrumentSelector") as NinjaTrader.Gui.Tools.InstrumentSelector);
I tried this way to access the InstrumentSelector.
But it does not work.
How can I determine the current setting of the instrument?
Comment