• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OrderStatus() query.......

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

    OrderStatus() query.......

    hello,

    Let's assume NT sends a market order to buy 1 contract, then there is a 60 second wait for the next tick to come in (As the market is trading in the early morning which is a very quite time in terms of activity).

    If my TradeStation EL program calls OrderStatus() function 60 seconds after the order has been submitted, and say after 3 seconds after i submitted my order it was actually filled at my broker, will calling OrderStatus() still return a "filled" string? or will the 60 second wait for the next tick to arrive cause some problems i.e. the order status getting lost somehow?

    also, for how long after an order has been filled will calling OrderStatus() return a valid "filled" string ?

    thanks in advance.

    regards

    Rod

    #2
    Hi Rod,

    Order state events are asynchronous from the broker and there is no sequence logic tied to market data. The order state event is called when NinjaTrader receives the state change from the broker API, not when you get the next tick of data.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      yes, but in tradestation and e-signal we can only call OrderStatus() function when a tick arrives.

      Comment


        #4
        In that case when you do eventually call OrderStatus() it will be whatever the order status happens to be at that particular moment in time. As long as the order state never changes it will persist indefinitely. If you use unique orderIds the terminal order state will remain terminal.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          This is good news! Thanks Josh, your help is very much appreciated.

          Regards

          Rod

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ttodua, Today, 01:52 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by muisca, 05-19-2017, 11:49 AM
          8 responses
          6,463 views
          0 likes
          Last Post NinjaTrader_Tyler  
          Started by NinjaTrader_Brandon, Today, 12:08 PM
          0 responses
          67 views
          0 likes
          Last Post NinjaTrader_Brandon  
          Started by iq200, Today, 12:00 PM
          2 responses
          11 views
          0 likes
          Last Post iq200
          by iq200
           
          Started by valhallafutures, Today, 11:33 AM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Working...
          X