How do I find the Quantity that is selected for the Chart/Chart Trader?
I figured out how to find the selected account, Instrument and ATM Selector for Chart Trader. Using the same approached I can not find the quantity.
AccountSelector accountSelector; InstrumentSelector instrumentSelector; AtmStrategySelector ATMselector; QuantitySelector quantitySelector; accountSelector = Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlAccountSelector") as AccountSelector; instrumentSelector = Window.GetWindow(ChartControl.Parent).FindFirst("C hartWindowInstrumentSelector") as InstrumentSelector; ATMselector = Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlATMStrategySelector") as AtmStrategySelector; Print(ATMselector.SelectedAtmStrategy.DisplayName. ToString()); quantitySelector = Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlQuantitySelector") as QuantitySelector; Print(quantitySelector.ToString());
Or should I be using
QuantityUpDown quantitySelector
Comment