Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

why is limit order canceled after 1 bar with EnterLongLimit()?

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

    why is limit order canceled after 1 bar with EnterLongLimit()?

    I use the EnterLongLimit() to place a limit order. but it is canceled as soon as the current bar is closed. how to make the limit order in place until I want to cancel it?

    #2
    leontancfa,

    By default, if you do not resubmit your limit order, it will expire and auto cancel. If you want to keep it active you should resubmit on every OnBarUpdate() you want to keep it alive for.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      leontancfa,

      By default, if you do not resubmit your limit order, it will expire and auto cancel. If you want to keep it active you should resubmit on every OnBarUpdate() you want to keep it alive for.
      b/c limit order is first come first serve, that way my limit order will be at the last of the queue every time the bar updates, and be last to get filled. is there a way to keep the limit order so that I keep be in line in the queue?

      Comment


        #4
        No, when you resubmit it does not remove your space in the queue. All it does is tell NT to keep the order alive and not cancel it. What happens is not the replacement of your order, but simply to let NT continue managing it.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          No, when you resubmit it does not remove your space in the queue. All it does is tell NT to keep the order alive and not cancel it. What happens is not the replacement of your order, but simply to let NT continue managing it.
          what is the method for resubmit? can't find sth like resubmit() in reference

          Comment


            #6
            Just call EnterLongLimit() with the exact same parameters.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

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