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 Marklhc1988, 04-19-2023, 11:11 AM
      12 responses
      569 views
      1 like
      Last Post victor68133  
      Started by nicthe, Yesterday, 02:58 PM
      1 response
      9 views
      0 likes
      Last Post nicthe
      by nicthe
       
      Started by percy3687, 05-17-2024, 12:28 AM
      3 responses
      30 views
      0 likes
      Last Post percy3687  
      Started by SilverSurfer1, Yesterday, 01:33 PM
      0 responses
      12 views
      0 likes
      Last Post SilverSurfer1  
      Started by ETFVoyageur, Yesterday, 10:27 AM
      2 responses
      19 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X