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 jclose, Today, 09:37 PM
          0 responses
          6 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,414 views
          0 likes
          Last Post Traderontheroad  
          Started by firefoxforum12, Today, 08:53 PM
          0 responses
          11 views
          0 likes
          Last Post firefoxforum12  
          Started by stafe, Today, 08:34 PM
          0 responses
          11 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by sastrades, 01-31-2024, 10:19 PM
          11 responses
          169 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X