Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can NT do that?

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

    Can NT do that?

    Hi everybody,

    I'm looking for platform for automated trading futures instruments through Interactive Brokers.

    Please confirm if NTallows:
    1. Restoring strategy state after restarting platform: information about pending orders submitted before must be available as well as about filled orders.
    2. Obtain yesterdaty close price for futures (ie. S&P 500 e-mini) from IB (settlement price, seen in TWS by adding "Close" column to the instrument list).

    #2
    Largo,

    1) NinjaTrader is capable of almost anything you can imagine through the use of custom-coded C# scripting. Unfortunately, out of the box, NinjaTrader doesn't "remember" the states of orders after a shutdown. Although it would be a long and complicated process, it is possible to code a database connector that can track and store fills, executions, and order status.

    2) It is definitely possible to retrieve yesterday's close price. You could use the PriorDayOHLC() indicator and just read the close plot.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thank you Austin.

      ad.1 restoring strategy state is vital thing. How can I know if I today already submitted pending orders? can I read from IB list of pending orders? And can I recognize each one by, for example, order comment?

      ad.2 I'm not sure if official settlement price is taken from OHLC - it's price from exchange (it's close?) but futures is traded 24/5 (S&P500 @ GLOBEX)

      Comment


        #4
        Largo, our yet-to-be-released NinjaTrader 7 will include account synchronization features designed to keep your account and strategies working together. Unfortunately the synchronization does not look at orders. Also, it can't recognize orders by order comments. Since NinjaScript is based off of Microsoft's C# language, it would be possible to have these features coded into a strategy, but it would be a complex process. So in short, NinjaTrader can do what you wish, but not out of the box and not without an in-depth project to code up a complete external order management system and database.

        Regarding #2, it is possible to specify certain session templates that restrict the time so it would be possible to extract the 4:15pm close price through some manipulation.

        Let us know if you have any other questions.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Search for the SessionPivots indicator in the forum. It calculates the actual close value for several different contracts.

          I don't know if anyone has calculated the settlement price. I believe settlement is the volume weighted average price for the last minute of trading. Does anyone know how to calculate that value?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by algospoke, 04-17-2024, 06:40 PM
          3 responses
          26 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by bmartz, 03-12-2024, 06:12 AM
          3 responses
          30 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by Aviram Y, Today, 05:29 AM
          3 responses
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by gentlebenthebear, Today, 01:30 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by cls71, Today, 04:45 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X