NinjaTrader.Gui.NinjaScript.AtmStrategy.AtmStrateg ySelector atm = w.FindFirst("ChartTraderControlATMStrategySelector ") as NinjaTrader.Gui.NinjaScript.AtmStrategy.AtmStrateg ySelector;
if (atm!=null) {
for(int i=0; i<atm.Items.Count; i++) {
NinjaTrader.NinjaScript.AtmStrategy strat = (NinjaTrader.NinjaScript.AtmStrategy)(atm.Items[i]);
Print("strat: " + (strat!=null ? (strat.DisplayName + ", " + strat.Name): "null"));
if (strat!=null && strat.DisplayName==myNewOrderStrategy) {
atm.SelectedIndex = i;
break;
}
}
}
And the Print statement also doesn't list any other value except the values in the dropdown.
So how do I set the dropdown programmatically to 'None'?

Comment