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 Danila, Today, 11:40 AM
      0 responses
      1 view
      0 likes
      Last Post Danila
      by Danila
       
      Started by PopovDS, Today, 11:17 AM
      0 responses
      7 views
      0 likes
      Last Post PopovDS
      by PopovDS
       
      Started by James Cowart, Today, 10:55 AM
      0 responses
      5 views
      0 likes
      Last Post James Cowart  
      Started by ETFVoyageur, Today, 10:27 AM
      0 responses
      4 views
      0 likes
      Last Post ETFVoyageur  
      Started by amousaber, Today, 09:30 AM
      0 responses
      14 views
      0 likes
      Last Post amousaber  
      Working...
      X