• 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.


No announcement yet.

Partner 728x90


Question: ninjatrader7 / db / tick / "instrument"

  • Filter
  • Time
  • Show
Clear All
new posts

  • pstrusi
    started a topic Question: ninjatrader7 / db / tick / "instrument"

    Question: ninjatrader7 / db / tick / "instrument"

    I'm recovering a database and want to merge "a new healthy data" with some healthy parts of the old faulty one.

    The "cleanest" method that I'm thinking would be:
    - Backup the new and healthy short database.
    - Restore old backup with the faulty database to save all raw data ( .ntd files ) to a secure location.
    - Uninstall NT and do a fresh install
    - Restore the last "healthy short new database"from the recent backup
    - Copy old raw ( .ntd files ) from old database to corresponding instruments in the new one, so I merge them as one.

    Question: In theory, if I had all .ntd files and copy them to an actual database, I'd have available that old data as well ? I imagine it wouldn't be a problem cause I'm not dealing with .sdf main files.


  • NinjaTrader_PatrickG
    A restore from a backup will overwrite, not append, NinjaTrader's files. First, I'd like to clarify some terminology and locations of files.

    Historical data is stored in the Documents > NinjaTrader 7 > db > tick, minute, and day sub-folders. I would not consider this the 'database'. The database would be the 'NinjaTrader.sdf' file you see within the db folder. This file contains critical information, however, doesn't have anything to do with historical data. From this point forward I'll be switching to 'historical data' terminology.

    If you copy/move the tick sub-folder to a new NinjaTrader db folder, you're effectively transferring that historical tick data.

    If you drill into these folders further, you'll fine data is listed by instrument and then files named by date. If you wanted to manually append data, you would need to make sure to manually transfer over the desired dates into the 'new' data folders.

    I am not sure that I follow why backups are involved at all in your steps at this point. It sounds like you could skip that step and just manually copy the desired data folders into your new NinjaTrader installation. If you're not replacing all data, you'll need to be very careful that you insert files in the right locations for their respective data type and instrument.

    Depending on your data provider and how far back the data is you're trying to transfer you may not need to do any of this manually. Many data providers supply several months or up to a year of tick data. You may want to first test on your new installation with your data provider connection is you can simply request the data on a chart or through the Historical Data Manager.

    Leave a comment:

Latest Posts


Topics Statistics Last Post
Started by Atilla, Today, 04:05 PM
0 responses
Last Post Atilla
by Atilla
Started by Displacer, Today, 02:57 PM
2 responses
Last Post Displacer  
Started by SAILIKITY, 05-22-2019, 05:41 PM
1 response
Last Post NinjaTrader_PaulH  
Started by rmillar, 01-09-2019, 06:02 PM
6 responses
1 like
Last Post eDanny
by eDanny
Started by mlarocco, Today, 11:39 AM
4 responses
Last Post mlarocco