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

Accessing the NINJA price database externally

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

    Accessing the NINJA price database externally

    Hi,

    one of my trading strategies currently requires a daily reimport of intraday data for all stocks, since I cannot use the data which NT saves every day from the real-time datafeed of my broker. Therefore I have to import 200 Stock symbols every day, and set the exchanges in the instrument manager manually -- an extremely tedious process.

    Is there any way to access the NT database externally so that I can write a macro to do this dumb work for me?

    Many thanks
    Martin Niemann

    #2
    This is beyond the scope of what we support. Also: we strongly recommend to *not* access the NT database by any external tool to avoid unexpected effects.

    Comment


      #3
      Why do you need to set the exchange manually? Are you reimporting data for the same stocks, or are they potentially new stocks every day?

      Comment


        #4
        I fully understand the risks of meddling with the database, but where could I find a documentation of its structure? Or would it be possible that you send me one?

        Thx
        Martin

        Comment


          #5
          My strategy requires historical data for every minute and that is not always the case in the real-time data. As a result, I have to delete the whole NT database every day and reimport adjusted data for all stocks every day. The issue is, that this also kills any changes which I have made in the Instrument Manager, so I have to set the exchanges manually every day.

          Comment


            #6
            So a couple of things:

            1. You can turn off 'record historical data', so that the only data ending up in your DB would be data pulled from the data provider.

            2. You can maintain an instrument list with all of your stocks, and run a quick backtest on the SampleMACross strategy to load the historical data for them in one shot.

            3. Even if you truly need to wipe the DB, if you're using 6.5, you can use the new import feature to import the stocks in 2 chunks (one for Nyse, one for Nasdaq).
            Last edited by Pete S; 02-06-2008, 07:42 AM. Reason: Typo

            Comment


              #7
              Sounds good, I will give that a shot.

              Thanks
              Martin

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by TraderBCL, Today, 04:38 AM
              2 responses
              8 views
              0 likes
              Last Post TraderBCL  
              Started by martin70, 03-24-2023, 04:58 AM
              14 responses
              105 views
              0 likes
              Last Post martin70  
              Started by Radano, 06-10-2021, 01:40 AM
              19 responses
              606 views
              0 likes
              Last Post Radano
              by Radano
               
              Started by KenneGaray, Today, 03:48 AM
              0 responses
              4 views
              0 likes
              Last Post KenneGaray  
              Started by thanajo, 05-04-2021, 02:11 AM
              4 responses
              471 views
              0 likes
              Last Post tradingnasdaqprueba  
              Working...
              X