I am trying to implement the example of Event fired by a change in the ATM strategy Selector as shown in the Help for the AtmStrategySelector item
Defining the variable as
private AtmStrategy.AtmStrategySelector
doesn't work because there is no AtmStrategySelector in the AtmStrategy in the class. And I don't find how I can get the ATM strategy selector to attach to the SelectionChanged a trigger.
I am developing an indicator and would like to fired an event when the user changes the ATM strategy in the ChartTrader.
I have found the way to do that in case of a change in the Account with this code :
CuentaSeleccionada = Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector;
CuentaSeleccionada.SelectionChanged += (o,args) =>
{
AccountName = CuentaSeleccionada.SelectedAccount.ToString();
lock (Account.All)
myAccount = Account.All.FirstOrDefault(a => a.Name == AccountName);
Print("CAMBIO CUENTA " + myAccount);
};
How could I do the same but with the ATM strategy selector ?
Thanks

Comment