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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      600 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X