Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access Chart Trade QTY input from an indicator

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

    Access Chart Trade QTY input from an indicator

    Hi guys,

    I have an indicator which I would like to have change the order quantity in the chart trader on the same chart. Is anyone able to point me in the right direction for achieving this?

    (the indicator updates on price change).

    Thanks & cheers,
    Shane

    #2
    Hi Shane,

    I'm currently looking into if this is possible and allowed for NinjaTrader 8.

    In my testing I've found its possible to change the text of the quantity textbox but this does not cause NinjaTrader to use that new value.

    I am checking with our development to see if there is a way to do this and I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Shane,

      I was able to find that the selector class that contains both the text and the up / down buttons can have the value set and this works correctly.

      Code:
      ChartControl.Dispatcher.InvokeAsync((Action)(() =>
      {
      	NinjaTrader.Gui.Tools.QuantityUpDown quantitySelector = (Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlQuantitySelector") as NinjaTrader.Gui.Tools.QuantityUpDown);
      
      	quantitySelector.Value = 5;
      }));
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thanks Chelsea, much appreciated!
        Last edited by ShaneAU; 05-13-2016, 12:41 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Jebulay, Today, 08:36 AM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by ShayeAus, Yesterday, 09:09 PM
        4 responses
        63 views
        0 likes
        Last Post bltdavid  
        Started by apmodeler, Today, 08:23 AM
        3 responses
        32 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by Realiori9999, Today, 08:22 AM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by AlessioCianini12, Today, 04:17 AM
        0 responses
        33 views
        0 likes
        Last Post AlessioCianini12  
        Working...
        X