• 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

External Data Feed - not saved in NT database

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

    External Data Feed - not saved in NT database

    Hi

    I am using external data feed options as real-time datafeed.

    I am getting the values into Ninja Trader but the problem I have is that NinjaTrader does not record and save the data in the local database.

    If I have say a 10 tick bars and have some bars on the charts then go and change the interval to 20 ticks the chart starts empty, same goes for interval bars.

    Should Ninja Trader not record those values?

    Any ideas why NT is not saving the data in the local database?

    #2
    You may be using the wrong methods, as I did the first time I tried to do this.
    Here's my post and solution: http://www.ninjatrader-support.com/v...ead.php?t=1963

    Bottom line, only "Last" data is stored in NT's database and *not* "Bid" nor "Ask".

    Comment


      #3
      Thanks guys

      My charts already update from the external data feed. My problem is after say running my feed for 10 minutes and have say like 10 x 1 minute bars, if I now change the interval to 2 minute bars my chart will come empty (like when u open a new chart) and it starts building bars again from my datafeed, so it is like the data is not getting recorded to the NT database.
      I am sending this data as last and it already shows on the chart just data gets lost when I change the interval.

      Thanks

      Baldur

      Comment


        #4
        Please provide a step by step scenario to reproduce your issue.

        BTW: No need to post your issue on multiple posts. http://www.ninjatrader-support.com/v...ead.php?t=1963
        DierkNinjaTrader Customer Service

        Comment


          #5
          Thanks for your reply.

          I did one of my reply in the wrong thread.

          First I have my datafeed setup. I use the last method of the dll to send the data to NT.
          I do connect in NT and get connected to the external datafeed.
          I open a chart, it starts updating.
          I then change the interval the charts becomes blank (like a new chart) and it starts updating but it has not got the data from the interval I had earlier so like it is not recording the values into the local database.

          This is what I use:
          Private Declare Function Last Lib "NTDirect.dll" (ByVal Instrument As String, ByVal Price As Double, ByVal size As Integer) As Integer

          Does this help?

          Baldur

          Comment


            #6
            Please make sure you have Tools->Options->Data->Store real-time bar data checked.
            DierkNinjaTrader Customer Service

            Comment


              #7
              Got that option checked.

              The data gets stored for other data feeds, like esignal, dtniq and ib.
              Just not the external one.

              Thanks

              Baldur

              Comment


                #8
                Sorry, I can't reproduce. It works fine with TradeStation here. I suggest checking your custom script.
                DierkNinjaTrader Customer Service

                Comment


                  #9
                  Alright IC

                  Are you using version 6.0.1000.3?

                  Like I said it works for esignal, dtniq and IB, I can not test with tradestation as I do not have an account with them.

                  You do not have to specify in the DLL connection that the data should be saved to database?

                  I am using a SIM license could that be the reson?

                  Have you got any idea what I should try? Other than reinstall NT.

                  Thanks

                  Baldur

                  Comment


                    #10
                    I tested on 6.0.1000.3 using the SIM key no problem. There is no need to specify anything to save the data. I'm out of ideas.
                    DierkNinjaTrader Customer Service

                    Comment


                      #11
                      To double check, you are setting the "last" price not only bid/ask through the DLL, correct? NT only saves last trade data not bid/ask.
                      RayNinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Birdseye, Today, 04:52 AM
                      0 responses
                      5 views
                      0 likes
                      Last Post Birdseye  
                      Started by U0000999, Today, 03:43 AM
                      0 responses
                      4 views
                      0 likes
                      Last Post U0000999  
                      Started by NinjaCustomer, Today, 03:22 AM
                      1 response
                      7 views
                      0 likes
                      Last Post NinjaTrader_Marco  
                      Started by MarianApalaghiei, Today, 01:26 AM
                      0 responses
                      10 views
                      0 likes
                      Last Post MarianApalaghiei  
                      Started by seagraph, Yesterday, 03:27 PM
                      0 responses
                      15 views
                      0 likes
                      Last Post seagraph  
                      Working...
                      X