Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Lifetime

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

    Order Lifetime

    I have a system that I am testing using limit orders to enter and exit.

    I am running the strategy as GTC and DAY, makes no difference.

    What are the conditions or situations that would cause an order to "die" or be cancelled?

    Another way to look at it is this. I don't specifically cancel any orders, so what would cause an order to cancel? If I have entries per direction set to say 1, and an order is working, I expect the order to cancel if I get a new signal to enter and a new order fires. But if that is the case, how can I ever have NO orders working when I don't specifically cancel an order?

    Is it good for the bar?

    Here is some of my entry and exits. I am not using the LiveTilCancel overloads, could that have something to do with it?

    Please direct me to a good read so I can understand order behavior.

    ExitLongStop(Close[0], "ExitLong", "Long1"); // Set Stop Immediately

    EnterLongLimit(1, Close[0], "Long1");

    I do believe I have entries per direction set to 1, so if a new order is entered, I am ok with the old one being cancelled, but I can't understand how an order can just die after what appears to be a certain amount of time.

    I'm sure this is obvious, I just want to get a handle on it.


    Thank you!

    #2
    Stops and Limit orders need to be resubmitted if you want to keep them alive. Otherwise they will auto expire on the next OnBarUpdate method. If you do not want them to expire you need to use liveUntilCancelled = true. Please see this article: http://www.ninjatrader-support.com/H...tml?Overview36
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,

      Thank you for the prompt reply. So the trades are good for the timeframe of the bar? Or good until the bar updates?

      So if COBC = true, is the limit order good for the whole timeframe of the bar? and if false, good until next tick/bar update?

      I will read the link, but if you have a quick reply, thanks.

      Comment


        #4
        Josh,

        I read the link. Very straight forward. Thanks for the direction and ultra fast reply.


        r2kTrader

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        570 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X