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

        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.

            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.

                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.

                    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 ZenCortexCLICK, Today, 04:58 AM
                      0 responses
                      1 view
                      0 likes
                      Last Post ZenCortexCLICK  
                      Started by sidlercom80, 10-28-2023, 08:49 AM
                      172 responses
                      2,280 views
                      0 likes
                      Last Post sidlercom80  
                      Started by Irukandji, Yesterday, 02:53 AM
                      2 responses
                      17 views
                      0 likes
                      Last Post Irukandji  
                      Started by adeelshahzad, Today, 03:54 AM
                      0 responses
                      4 views
                      0 likes
                      Last Post adeelshahzad  
                      Started by Barry Milan, Yesterday, 10:35 PM
                      3 responses
                      13 views
                      0 likes
                      Last Post NinjaTrader_Manfred  
                      Working...
                      X