Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the automation ID for the Order Qty Control in a ChartTrader?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is the automation ID for the Order Qty Control in a ChartTrader?

    Hi,

    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




    #2
    Hello jmneto,

    To find the automation ID's it is suggested to use Microsofts inspect tool. I composed a guide on how to use this tool in the following post:




    The automation ID for this control is: ChartTraderControlQuantitySelector

    Please let me know if I may be of further assistance.

    Comment


      #3
      Works like a charm, thanks Jesse.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      41 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X