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 cmoran13, Yesterday, 01:02 PM
        0 responses
        29 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        21 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X