To stop my order size mistakes, I wanted to print out in my chart the value selected in the Chart Trader Order Qty Indicator. I looked around here but could not find an answer. I need to find the Automation ID for the Order Qty control so I can add an event when it changes and also grab its value.
I am trying this:
// Get a reference to Charttrader
chartTrader = chartWindow.FindFirst("ChartWindowChartTraderContr ol") as ChartTrader;
NinjaTrader.Gui.Tools.QuantityUpDown qudSelector = chartTrader.FindFirst("I do not know what to put here") as NinjaTrader.Gui.Tools.QuantityUpDown;
But I do not know how to find the Order Qty Object in the chart control. Can you please help and provide quick sample of how to grab an instance to the control, how to add an event what the order qty changes and how to get its value.
Thank you in advance
jmneto
Comment