You are trying to retrieve an account assign to the account variable.
Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlAccountSelector") <- this gets the account selector
chartTraderAccountSelector.SelectedAccount <- this is the selected account
Assign the selected account to the account variable.
account = chartTraderAccountSelector.SelectedAccount;
Account.All.FirstOrDefault(a => a.Name == "Sim104"); <- this gets the Sim104 account. We don't want to force account, we want to use the SelectedAccount from the account selector.
Comment