Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit orders

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

    Limit orders

    Hi,
    I have a strategy with limit orders. The strategy triggered a buy limit. The log shows 5 rows.
    1. PendingSubmit
    2. Accepted
    3. Working
    4. PendingCancel
    5. Canceled
    The price went down below the limit buy.
    Can you explain what happened.

    Baruch

    #2
    Baruch,

    You will need to use TraceOrders = true to understand why it went into a pending cancel state.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,
      Well I put the trace orders and I have 2 rows:
      1. 09:55:59 Entered interanal ..... OrderType=Limit
      2. 09:55:59 Cancelled expired order...

      I can't say that I'm much smarter now.
      What's wrong???

      Baruch

      Comment


        #4
        Sure you are much smarter. Now we know the reason. The order was expired. Have you kept it alive by resubmitting?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I run my strategy on a 5 minute chart. I wrote the times of the order and the cancellation.
          Does it make sense?
          Yes I issue the order on several bars if it doesn't catch, but this is not the issue hear.

          Baruch

          Comment


            #6
            Provide complete message please.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              You know it would be much easier if I could copy from output window.
              01/09/2009 09:59:59 Cancelled expired order: BarsInProgress=1: Order='......./Sim101'Name='....' State=PendingSubmit instrument='ES 09-09' Action=SellShort Limit price=1017.5 Stop price=0 Quantity=1 Strategy='...' Type Limit Tif=Gtc Oco=" Filled=0 Fill price=0 Token='...' Gtd='01/12/2099 00:00:00'

              I hope you won't ask me to write the tokens and stuf. It will be really cruel.

              Baruch

              Comment


                #8
                You can copy from the Output Window. Just select the text and press Ctrl+C.

                Looks like you are using a multi-bars series strategy with that BarsInProgress = 1. You need to resubmit the order on every single BIP context. Alternatively, just turn liveUntilCancelled = true.
                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
                648 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                369 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
                572 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                574 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X