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 ghoul, Today, 06:02 PM
              3 responses
              14 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              44 views
              0 likes
              Last Post jeronymite  
              Started by Barry Milan, Yesterday, 10:35 PM
              7 responses
              20 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by AttiM, 02-14-2024, 05:20 PM
              10 responses
              180 views
              0 likes
              Last Post jeronymite  
              Started by DanielSanMartin, Yesterday, 02:37 PM
              2 responses
              13 views
              0 likes
              Last Post DanielSanMartin  
              Working...
              X