by
do you mean using something like
Chris example / AccountSelector
ChartControl.Dispatcher.InvokeAsync((Action)(() =>
{
//You have to put the stuff below within this ChartControl.Dispatcher.InvokeAsync((Action)(() =>, because you are trying to access something on a different thread.
xAlselector = Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector;
Print(xAlselector.SelectedAccount.ToString());
}));
if so how would i adapt it to my code?
private void Account_OrderUpdate(object sender, OrderEventArgs orderUpdateArgs)
{
ChartControl.Dispatcher.InvokeAsync((Action)(() =>
{
}));
How to access the Account thread? I can't find it in the doc . Thanks!
Comment