Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Works like a charm, thanks Jesse.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Jonker, 04-27-2024, 01:19 PM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by businessman1929, 04-29-2024, 01:28 PM
      2 responses
      21 views
      0 likes
      Last Post businessman1929  
      Started by bltdavid, 03-27-2023, 05:32 AM
      18 responses
      347 views
      0 likes
      Last Post ETFVoyageur  
      Started by NM_eFe, Today, 05:15 PM
      0 responses
      5 views
      0 likes
      Last Post NM_eFe
      by NM_eFe
       
      Started by vitaly_p, Today, 05:09 PM
      0 responses
      6 views
      0 likes
      Last Post vitaly_p  
      Working...
      X