Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the purpose of all the cached data???

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

    What is the purpose of all the cached data???

    under the "db" folder there are subfolders

    cache
    day
    minute
    tick

    I have a custom system that processes a lot of back data when Ninja loads.

    I would have thought Ninja gets the historical data first from the data stores held in the DB folder, but it seems to load all the data I need from the Historical Data server, real time.....I say this because I watch the bandwidth on Task Manager.

    As well, about a month ago I had problems with thelocal internet...it was very slow (now I have Starlink, so much better here, far from civilization). Normally it was decent enough bandwidth but when it was not, then my charts took forever to load. 5 to 10 minutes, and if was really slow, would not load at all.

    In the future I hope to pre-process all this historical data and load it into an SQL database...but for now each time I load Ninja, I have to look back sometimes several months.


    With Starlink at 90mbs it is no problem, but maybe one day it won't be working and I'll have to fall back on local wifi / cell phone data.

    #2
    Hello llanqui,

    Thanks for your post.

    Bar cache data is stored in the Documents\NinjaTrader 8\db\cache\ folder.

    This allows the data in NInjaTrader to process quicker, such as opening a chart quicker, since the data is saved to the Documents\NinjaTrader 8\db\cache folder.

    Data is requested if it does not exist in these db folders.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thanks...

      Can you tell me what the function is for the minute and tick folders?

      Is it just he cache folder that is used to load charts faster, or is it all of those?

      NQ has a lot of data. I load 2 Range (One Day), 10 Second (1 Day), and for the higher time, one of 10/20/40 Range. For the higher time frame sometimes I look back 4-6 months. It is these that seems to cause a very slow loading (before when my internet was bad).

      So that data (4-6 months) Higher Time Frame seems to not have been stored on the DB folder, because each time I started Ninja, it was the same...it had to load a lot of data from the servers.

      As mentioned, I have a plan to put this historical data in a SQL database...but that is a future project.

      Comment


        #4
        Hello llanqui,

        Thanks for your notes.

        The Documents\NinjaTrader 8\db\minute folder holds historical minute data for instruments.

        The Documents\NinjaTrader 8\db\tick folder holds historical tick data for instruments.

        All of the data in the Documents\NinjaTrader 8\db folder is used to help improve performance when loading charts or backtesting strategies in the Strategy Analyzer.

        The data in the Documents\NinjaTrader 8\db\minute folder and Documents\NinjaTrader 8\db\tick folder could be seen in the Tools > Historical Data window.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          From what I remember, this folder usually holds temporary files that NinjaTrader uses to quickly get to data it uses a lot.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X