Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NtDirect Order Status Problem

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

    NtDirect Order Status Problem

    I have an instance where two identical orders were sent and filled, only differing in the order name. One reports an order status using NTOrderStatus, and the other does not. What could cause this?
    Attached Files

    #2
    Hello Atomic,

    It looks like you are submitting the orders very quickly. Could it be that you are submitting them and getting their status before NinjaTrader is filling them?

    For instance are you waiting a second to let the orders fill before checking them?

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello Atomic,

      It looks like you are submitting the orders very quickly. Could it be that you are submitting them and getting their status before NinjaTrader is filling them?

      For instance are you waiting a second to let the orders fill before checking them?

      Happy to be of further assistance.
      No the order was submitted several hours ago and I still cannot get a status.

      Here is the code I'm using to get the order status:
      Code:
      once clearprintlog;
      
      
      if (barstatus(1) = 2) and lastbaronchart then begin
      	print(formattime("hh:mm:ss tt",computerdatetime)," PortX2.1Buy38A11 ",NTORderStatus("PortX2.1Buy38A11"));
      	print(formattime("hh:mm:ss tt",computerdatetime)," RCMAL-A-OBSE38 ",NTORderStatus("RCMAL-A-OBSE38"));
      	print(formattime("hh:mm:ss tt",computerdatetime)," RCMAL-A-Lng138 ",NTORderStatus("RCMAL-A-Lng138"));
      	print(formattime("hh:mm:ss tt",computerdatetime)," PORTX3.3Buy38A ",NTORderStatus("PORTX3.3Buy38A"));
      	print(formattime("hh:mm:ss tt",computerdatetime)," PORTX3.3Sell38A1 ",NTORderStatus("PORTX3.3Sell38A1"));
      	print(formattime("hh:mm:ss tt",computerdatetime)," PORTX3.8Buy38A11 ",NTORderStatus("PORTX3.8Buy38A11"));
      end;
      Here is the printout:
      12:27:16 PM PortX2.1Buy38A11
      12:27:16 PM RCMAL-A-OBSE38 Filled
      12:27:16 PM RCMAL-A-Lng138 Cancelled
      12:27:16 PM PORTX3.3Buy38A Working
      12:27:16 PM PORTX3.3Sell38A1 Filled
      12:27:16 PM PORTX3.8Buy38A11 Filled
      Last edited by Atomic; 03-05-2013, 12:29 PM.

      Comment


        #4
        Hello Atomic,

        Thanks for the information.

        This would be due to the Order was submitted with the name of "PORTX2.1BUY38A11" when you are trying to get the order status of "PortX2.1Buy38A11". If you change the order name to all Capitals to match the enter order name you should get the correct status back.

        Let us know if we can be of further assistance.
        JCNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_JC View Post
          Hello Atomic,

          Thanks for the information.

          This would be due to the Order was submitted with the name of "PORTX2.1BUY38A11" when you are trying to get the order status of "PortX2.1Buy38A11". If you change the order name to all Capitals to match the enter order name you should get the correct status back.

          Let us know if we can be of further assistance.
          Thanks. I had lost sight of the fact that these were case sensitive.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by usazencort, Today, 01:16 AM
          0 responses
          1 view
          0 likes
          Last Post usazencort  
          Started by kaywai, 09-01-2023, 08:44 PM
          5 responses
          603 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by xiinteractive, 04-09-2024, 08:08 AM
          6 responses
          22 views
          0 likes
          Last Post xiinteractive  
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          21 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          230 views
          0 likes
          Last Post TradingLoss  
          Working...
          X