I'm developing an AddOn for NinjaTrader 8 that adds a custom button panel to the ChartTrader interface. The panel displays ATM strategy templates (from My Documents\NinjaTrader 8\templates\AtmStrategy), and my goal is to programmatically trigger the ATM strategy change when a button is clicked.
Here's what I've tried so far:
- Reflection: I use reflection to access the ChartTrader control and set its SelectedAtmStrategyTemplate property.
- UI Event Simulation: I then search the ChartTrader visual tree for the ATM strategy dropdown (a ComboBox/Selector) and attempt to simulate a user selection by setting its SelectedIndex and raising a SelectionChanged event.
Has anyone found a supported method or workaround to programmatically trigger the ATM strategy change (perhaps by simulating the required UI event or calling an internal method) so that the selected strategy is fully applied?
Thanks in advance for any guidance!

Comment