My question is related to a request topic from earlier this year: http://ninjatrader.com/support/forum...ad.php?t=75053
Can you please provide a code snippet that shows how to enumerate the controls on the Chart Trader's main grid (i.e. Buy Mkt, Sell Mkt,... PnL, etc.). For example, something like:
// Find chart trader from parent chart by it's automation id "ChartWindowChartTrader" chartTrader = Window.GetWindow(ChartControl.Parent).FindFirst("ChartWindowChartTraderControl") as ChartTrader; // This is the main chart trader grid where the default buttons and controls reside mainGrid = chartTrader.FindName("grdMain") as Grid; if (mainGrid == null) { Print("mainGrid is null"); return; } // THIS PIECE OF CODE DOES NOT WORK, AS THERE IS NO NAME PROPERTY for ( int ctr=0; ctr < mainGrid.Children.Count; ctr++ ) Print( mainGrid.Children[ctr].Name );
Many thanks.
Comment