Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change order

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

    Change order

    Is it possible to change an order or do I need to cancel and re-submit it?

    #2
    Hello,

    A working order is cancelled automatically on the completion of a bar. You must resubmit the order each new bar to maintain its working status.

    But yes, you can change an order by calling the order method again with the same signal name.
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ben View Post
      A working order is cancelled automatically on the completion of a bar. You must resubmit the order each new bar to maintain its working status.
      Does this also apply to 1min bars for example? I thought this only applies to daily bars when TIF is set to GTD.

      GTC orders should never be cancelled, right?

      Originally posted by NinjaTrader_Ben View Post
      But yes, you can change an order by calling the order method again with the same signal name.
      So if I use, let's say, EnterLong() twice, each time without specifying a signal name, then the second call will change the first order instead of placing a second one? And if I do want two orders then I'd need to specify two different signal names?

      Do I understand correctly: If I have, for example, a stop loss and a take profit sell order then I need to give each one a different signal name, otherwise placing the take profit order would change the stop loss order (and thus effectively cancel it) instead of having two orders in the system?

      Comment


        #4
        Hello,


        In NinjaScript it is a little different. Gtc will only keep your open positions good. The working orders will need to be resubmitted.

        If you use EnterLong() twice it will enter another order whether you use a signal name or note. The singal name feature only matters for limit, stop, and stop-limit orders as well as SetStopLoss() and SetProfitTarget().

        If you submit a profit target or stop loss with a signal name it will be applied to the order that has that same signal name. Set() methods are attached to each unique entry order if no signal name is given. If signal names are given then they will only be attached to order of that name.
        DenNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        582 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X