Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simultaneous orders?

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

    #16
    Hello judysamnt7,

    Use the method you need for your use case.

    The button click event handler method runs when the button is clicked.

    OnBarUpdate() runs when the bar updates.

    When do you need the order submitted? When the button is clicked or when the bar updates?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Hi Chelsea,
      Regarding post #12, is it possible to call CreateOrder() and Submit() within OnButtonClick() method of strategy development, for secondary data series (instrument) ? If yes, do you have a sample Ninja Script to get me started ?

      thanks !

      Comment


        #18
        Hello judysamnt7,

        This depends on what you want to have happen.

        "which one is better toward my end?"

        What is your end?

        If you want to submit the order immediately when the button is clicked, submit the order from the button click event handler method.
        If you want to submit the order when the bar updates, submit the order from OnBarUpdate().

        The Chart Order Buttons example I have provided a link to shows both submitting an order immediately and submitting an order from OnBarUpdate().
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X