Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

API/Data feed question

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

    API/Data feed question

    I'm a NinjaTrader and IQFeed subscriber using tick data in an automated strategy. I'd like to be able to filter the IQFeed tick data feed received by NT. For IQFeed, this is fairly easy since developers have access to the IQFeed API. But, once I've customized the IQ Feed API I need to connect this to NT. How can I do this?

    In this case, the data feed customization is simple. I'm looking to take a futures data tick feed and filter ticks so that NT only records a tick when the tick is accompanied by a price change.
    Last edited by bluelou; 07-30-2009, 09:14 AM.

    #2
    I just caught the External Data Feed functionality. Would that work in my case? What are the limitations w/using External Data Feed? Is there any documentation on this?

    Comment


      #3
      bluelou, unfortunately we don't offer a full API for connecting a custom feed to NinjaTrader.

      Inside NinjaScript you can use OnMarketData and OnMarketDepth to access Level 1 and Level 2 data in your scripts, but that's probably not what you seek.
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Bertrand,
        What's the difference between offering a "full API" and the External Data Feed capability?

        What problems would I run into if I filtered tick data using the IQFeed API and then tried to connect this to NT using External Data Feed? Is there no work-around here?

        FWIW, none of the systematic traders/funds that I speak with use any of the off-the-shelf retail-oriented trading platforms and the inability to manipulate inhomogeneous data sets (e.g., tick, volume data, etc.) is one of the key reasons.

        Comment


          #5
          bluelou, sorry I spoke too soon - it's not a full blown API in terms of a limited function range.

          But for your custom tick datafeed you can of course try working with the 'External Data Feed' option / the Bid/Ask functions of the DLL interface.

          BertrandNinjaTrader Customer Service

          Comment


            #6
            Bertrand,
            I'd like to do more than "try". Focusing on the External Data Feed functionality here's what I need to do: import price-tick data into NT to i.] drive real-time charting, ii.] populate historical charts, iii.] drive real-time trading, iv.] perform backtesting, v.] use the DOM, and iv.] populate the T&S window.

            Is the External Data Feed sufficient for this or is there a limitation inherent in the External Data Feed that will effect the ability to do i.]-vi.] mentioned above?

            Comment


              #7
              bluelou, you can drive NinjaTrader with realtime level 1 data this way over the DLL interface, but unfortunately you can't populate charts with historical data. This is what I meant with it's not full blown API as it has some limitations.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Okay, that's closer. Thx. Help me through how that would work as a practical matter... For instance, based on what you've told me I assume I CAN'T do the following using External Data Feed: populate a chart with historical data not already saved in a NT database file on my PC.

                However, I assume I CAN do the following using External Data Feed: if I've already saved historical in the NT database on my PC and I want to drive a live chart and live strategy using both the historical data saved on my PC and the live feed called via External Data Feed I should be able to do this, right?

                Or, when it comes to populating a chart and/or strategy is it the case that NT will look to populate any required data ONLY through the historical data maintained by the live feed data provider?

                Comment


                  #9
                  No bluelou, look as an example to the TradeStation connection using this feature - you import historical data via txt files to the local NT database. Live data then is populated through the DLL interface with the functions I referred you to.
                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    The last part of what you wrote was the heart of my question. Once I have historical data in the local NT database and I have the live feed via External Data Feed then will I be able to populate charts and run strategies that use a combination of historical and live data?

                    Comment


                      #11
                      Correct bluelou, this is how the TradeStation connection option as cited also works. You can then fully backtest on this data and use the live Level1 data to drive the simulation engine with the order entry windows.
                      BertrandNinjaTrader Customer Service

                      Comment


                        #12
                        Bertrand,
                        Thanks for you help. I think the External Data Feed may work for me.

                        Comment


                          #13
                          You're welcome, great.
                          BertrandNinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Jimmyk, 01-26-2018, 05:19 AM
                          6 responses
                          834 views
                          0 likes
                          Last Post emuns
                          by emuns
                           
                          Started by jxs_xrj, 01-12-2020, 09:49 AM
                          6 responses
                          3,290 views
                          1 like
                          Last Post jgualdronc  
                          Started by Touch-Ups, Today, 10:36 AM
                          0 responses
                          10 views
                          0 likes
                          Last Post Touch-Ups  
                          Started by geddyisodin, 04-25-2024, 05:20 AM
                          11 responses
                          62 views
                          0 likes
                          Last Post halgo_boulder  
                          Started by Option Whisperer, Today, 09:55 AM
                          0 responses
                          8 views
                          0 likes
                          Last Post Option Whisperer  
                          Working...
                          X