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

[NT6] Question about backfill with IB

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

    [NT6] Question about backfill with IB

    When doing a backfill of historical data, how is the time of the bars then determined?

    What I mean is this:when I'm connected live, the timescale of my charts display the local time of my PC clock. But when I backfill, does it use my PC clock then or some timestamp that is connected with the data that is received from IB?

    What happens for example when I change the local clock of my PC (for example if I travel to a different timezone). If I set my PC-clock for example a few hours back, will it then screw up the data in the database? If it uses the local clock as time reference then that would cause some data to overlap in the database. Or is there some kind of timestamp in the data received from the broker that will keep consistency of my database in that case?

    Please explain. Thanks.

    #2
    imported post

    Backfill data will be timestamped with the time of your local PC clock. When you change the time of your PC clock, freshly loaded historical data might not be in sync with that you already have in your DB.

    Comment


      #3
      imported post

      Thanks for clarifying this.

      Since I have recently changed timezone of my PC-clock I better clear my database completely and rebuild it otherwise backtests could get messed up...
      Is there an easy way to clear my database?

      Comment


        #4
        imported post

        You may not need to reset your DB. You could reload all your data from your provider by Tools->Historical data->Reload.

        Comment


          #5
          imported post

          But what if I cannot go far enough back for reloading the data? In that case the oldest data will be still the (wrong timeshifted) old data. Therefore I would prefer to clear the database completely before reloading.

          Comment


            #6
            imported post

            I see. Sorry, then the only option is to delete the DB and start with a fresh one (which will be installed by NT on restart after you deleted the old one).

            Comment


              #7
              imported post

              That's fine.
              Which file(s) do I need to delete to start clear?

              Comment


                #8
                imported post

                Please delete <my documents>/NinjaTrader6/db/NinjaTrader.mdb

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by RookieTrader, Today, 07:41 AM
                1 response
                4 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by kujista, Today, 05:44 AM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by elderan, Yesterday, 08:03 PM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by samish18, Yesterday, 08:57 AM
                8 responses
                25 views
                0 likes
                Last Post samish18  
                Started by DJ888, 04-16-2024, 06:09 PM
                3 responses
                10 views
                0 likes
                Last Post NinjaTrader_Erick  
                Working...
                X