Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 Message : Unable to write cache data

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

    NT7 Message : Unable to write cache data

    Hello,

    first thanks a lot for your great job and improvements on NT7.

    I am running NT 7.0.0.6 with 5 historical contracts, for backtesting.
    These are 10 years 1 minute historical.

    When backtesting a simple strategy on one single contract, I get this message box:
    "Unable to write cache data"
    This message appears in green in the "Log table".
    It does not stop the backtesting, it's just anoying.
    I must say that this message box started to appear 2-3 days ago,
    and I am running this NT7 version since 2 months, with the same historical datas.

    I have checked the number of files in folder C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\db\cache.
    I have 26452 files, representing 70 Mo on disk.
    My disk is 5 Go free space, no problem on this side.

    I suppose you know where this message comes from as you included in NT7.

    Any idea of how to repair this little bug ??

    Thanks
    Arnaud

    #2
    Your version is way outdated. You should have received mail to update to 7.0.0.9. Please update to that version. If error persists, then please please post the complete error messages. Thanks

    Comment


      #3
      Hello,

      I know my version is outdated.
      But to be sure that it is not my version which have bugs, I updated to NT 7.0.0.9, last beta version.
      I completely deleted my C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7 folder
      including database.
      I reinstalled one single contract, 10 years historical in 1 minute datas.
      When backtesting on this contract, I still get the same message, even if I backtest only 1 year of historical.

      Here is a copy of log file (just after backtest)
      C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\log

      17/02/2010 14:36:53|1|4|Verifying license at primary server...
      17/02/2010 14:36:53|2|4|Session Break (Version 7.0.0.9)
      17/02/2010 14:36:53|1|4|Current license: Type=SimulationOnly State=Verified StartDate=01/01/2005 EndDate=01/12/2099 Collective2 Dtn ESignal External Provider2 Provider3 Replay Simulator Yahoo Gain Hosted InteractiveBrokers MBTrading Patsystems Provider1 Provider4 Tda TrackData TradingTechnologies AdvancedStrategyManagement AutomatedTrading BasicEntry Charting SuperDom
      17/02/2010 14:36:55|1|2|Auto connecting to 'IB'
      17/02/2010 14:36:55|1|2|IB: Primary connection=Connecting, Price feed=Connecting
      17/02/2010 14:36:57|1|2|IB: Primary connection=Connected, Price feed=Connected
      17/02/2010 14:36:57|1|2|Time to flatten=00:00:00, Flatten all=Disabled
      17/02/2010 14:37:03|3|4|Error validating request:-'zb' : cause - Please enter exchange ServerValidateError
      17/02/2010 14:37:04|1|4|Order entry hot keys disabled
      17/02/2010 14:37:04|1|2|Optimized CPU performance enabled
      17/02/2010 14:37:04|1|4|Automated trading disabled
      17/02/2010 14:37:37|0|4|Unable to write cache data

      Comment


        #4
        And here is a copy of trace file in:
        C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\trace


        2010-02-17 14:36:51:875 ******************* Session Start (Version 7.0.0.9) *******************
        2010-02-17 14:36:51:875 Attaching global exception handlers...
        2010-02-17 14:36:51:906 InstallDir='C:\Program Files\NinjaTrader 7\'
        2010-02-17 14:36:51:906 UserDataDir='C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\'
        2010-02-17 14:36:52:984 Cbi.Globals.MachineId: True/True
        2010-02-17 14:36:52:984 MachineId='86D382439BD0A5A71CC49C243A6F0DA4'
        2010-02-17 14:36:52:984 OS='Microsoft Windows NT 5.1.2600 Service Pack 3'/'Win32NT'
        2010-02-17 14:36:53:000 Processors: available=2 enabled=2
        2010-02-17 14:36:53:000 .NET/CLR Version='2.0.50727.3603'/32bit
        2010-02-17 14:36:53:000 Processor='Processeur Intel Pentium III Xeon'
        2010-02-17 14:36:53:000 PhysicalMemory=2048 MB
        2010-02-17 14:36:53:000 Timezone=EST +6 hour(s)
        2010-02-17 14:36:53:000 OptimizedCpuPerformance=True
        2010-02-17 14:36:53:000 Global Hot Keys: Cancel All Orders= Close Workspace= Flatten Everything= New Alerts...= New Basic Entry...= New Chart...= New Dynamic SuperDOM...= New FX Entry...= New FX Pro...= New Level II...= New Market Analyzer...= New News...= New Static SuperDOM...= New Strategy Analyzer...= New Time And Sales...= Next Workspace=Shift+F3 Previous Workspace= Save Workspace= Edit Indicators...= Open Instrument Manager...= Open Historical Data Manager...= Open Hot Key Manager...= Open Output Window...= Open Session Manager...= Edit Strategies...=
        2010-02-17 14:36:53:000 Grid Hot Keys: Email Image...= Export to Excel...=Ctrl+M Find...=Ctrl+F Print...= Save As...=
        2010-02-17 14:36:53:000 Market Analyzer Hot Keys: Add Blank Row= Add Label Row= Alerts= Auto Sort= Reload All Historical Data=Ctrl+Shift+R Reload NinjaScript=F5 Row Filter= Columns...=
        2010-02-17 14:36:53:000 NinjaScript Editor Hot Keys: Compile=F5 Go To Line...=Ctrl+G Inline Syntax Checking=Ctrl+S Insert Code Snippet=F2
        2010-02-17 14:36:53:015 Order Entry Hot Keys: Breakeven ATM Strategy= Breakeven Position= Buy Ask= Buy Bid= Buy Market= Cancel last Order= Close ATM Strategy= Close Position= Decrease Last Order Price= Increase Last Order Price= Modify Last Order To Fill= Reverse= Sell Ask= Sell Bid= Sell Market=
        2010-02-17 14:36:53:015 Order entry hot keys disabled
        2010-02-17 14:36:53:015 Creating file type watcher...
        2010-02-17 14:36:53:015 Retrieving license...
        2010-02-17 14:36:53:015 Cbi.Licence.Download5
        2010-02-17 14:36:53:546 Cbi.Licence.ProcessLicense10
        2010-02-17 14:36:53:546 Cbi.Licence.ProcessLicense13
        2010-02-17 14:36:53:546 Cbi.Licence.Download99: 'Type=SimulationOnly State=Verified StartDate=01/01/2005 EndDate=01/12/2099 Collective2 Dtn ESignal External Provider2 Provider3 Replay Simulator Yahoo Gain Hosted InteractiveBrokers MBTrading Patsystems Provider1 Provider4 Tda TrackData TradingTechnologies AdvancedStrategyManagement AutomatedTrading BasicEntry Charting SuperDom'
        2010-02-17 14:36:53:546 Starting splash...
        2010-02-17 14:36:53:671 Copying custom DLLs...
        2010-02-17 14:36:53:671 Running Cbi.Globals.Install()...
        2010-02-17 14:36:53:671 WARNING: Session Break (Version 7.0.0.9)
        2010-02-17 14:36:53:687 Clearing C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\bin\Custom\Tmp...
        2010-02-17 14:36:53:687 Loading C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\bin\Custom\NinjaTrader.Custom.dll...
        2010-02-17 14:36:53:718 Loading C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\bin\Custom\NinjaTrader.Vendor.dll...
        2010-02-17 14:36:53:734 Initializing database...
        2010-02-17 14:36:53:765 (Db) Db.Globals.get_ConnectionString: 'Data Source='C:\Documents and Settings\Administrateur\Mes documents\NinjaTrader 7\db\NinjaTrader.sdf''
        2010-02-17 14:36:54:171 Instantiating serializers...
        2010-02-17 14:36:54:171 Deleting temporay files...
        2010-02-17 14:36:54:171 Loading server side config file...
        2010-02-17 14:36:54:703 Creating user defined methods files...
        2010-02-17 14:36:54:703 Loading master instruments...
        2010-02-17 14:36:54:843 Loading instruments...
        2010-02-17 14:36:55:078 Loading default symbol list...
        2010-02-17 14:36:55:093 Loading available connections...
        2010-02-17 14:36:55:453 Connecting ATI server...
        2010-02-17 14:36:55:453 Cbi.AtiServer.Connect1
        2010-02-17 14:36:55:562 Cbi.AtiServer.ConnectNow: Port=36973
        2010-02-17 14:36:55:562 Syncronizing executions...
        2010-02-17 14:36:55:562 Cbi.AtiServer.ConnectNow2
        2010-02-17 14:36:55:578 Registering chart styles...
        2010-02-17 14:36:55:671 Registering bars types...
        2010-02-17 14:36:55:687 Hiding splash...
        2010-02-17 14:36:55:687 (Unknown) Cbi.Connection.Connect0 Disconnected assembly=7.0.0.9 date=17/02/2010
        2010-02-17 14:36:55:687 (Unknown) Cbi.Connection.Connect1
        2010-02-17 14:36:55:843 (IB) Cbi.Connection.Connect9
        2010-02-17 14:36:55:890 (IB) Cbi.Connection.ProcessEventArgs.ConnectionStatusEv entArgs Connecting Connecting NoError
        2010-02-17 14:36:55:890 (IB) Cbi.Connection.ConnectNow1: DataConnection=False
        2010-02-17 14:36:55:890 (IB) Cbi.Connection.ConnectNow2
        2010-02-17 14:36:55:890 (IB) Cbi.Connection.ConnectNow.CreateLoader
        2010-02-17 14:36:55:890 Server.Client.Connect
        2010-02-17 14:36:55:890 Server.Client.Loop0-0: 64.202.118.144/31654
        2010-02-17 14:36:56:234 Server.Client.Loop1-0
        2010-02-17 14:36:56:234 (IB) Cbi.Connection.ConnectNow.Connect
        2010-02-17 14:36:56:234 (IB) IB.Adapter.MessageLoop1: Host='127.0.0.1' Port=7496 ClientId=0 Mode=Live UseSsl=False CheckForMarketData=False Connect2RunningTws=True DontHandleRuntimePopups=False EnablePopupHandling=False LogLevel=Error PopupHandlerMilliSeconds=1000 SimOcoPartialFills=True UseNativeOcoOrders=True UseUserSettings=True WaitMilliSecondsRequest=40 WaitOnConnectMilliSeconds=1000
        2010-02-17 14:36:56:234 (IB) IB.Adapter.StartTws0
        2010-02-17 14:36:56:234 (IB) Cbi.Connection.ConnectNow9 ok
        2010-02-17 14:36:56:250 (IB) IB.Adapter.MessageLoop2
        2010-02-17 14:36:56:250 (IB) IB.Adapter.MessageLoop3
        2010-02-17 14:36:56:250 (IB) IB.Adapter.MessageLoop4
        2010-02-17 14:36:56:250 (IB) Cbi.ConnectionStatusEventArgs.Process: Connecting Connecting
        2010-02-17 14:36:56:250 (IB) IB.Adapter.MessageLoop5
        2010-02-17 14:36:56:250 (IB) IB.Adapter.MessageLoop6
        2010-02-17 14:36:56:359 (IB) IB.Adapter.MessageLoop7: serverversion=46
        2010-02-17 14:36:56:359 (IB) IB.Adapter.MessageLoop8: twsTime='20100217 14:36:58 CET' timeOffset=0
        2010-02-17 14:36:56:484 (IB) IB.Adapter.MessageLoop9
        2010-02-17 14:36:56:500 (IB) IB.Adapter.HandleMessage: NextValidId=1
        2010-02-17 14:36:56:500 (IB) IB.Adapter.HandleMessage DataFarmConnectionOk
        2010-02-17 14:36:56:500 (IB) IB.Adapter.HandleMessage DataFarmConnectionOk
        2010-02-17 14:36:56:500 (IB) IB.Adapter.HandleMessage DataFarmConnectionOk
        2010-02-17 14:36:56:500 (IB) IB.Adapter.HandleMessage: NextValidId=1
        2010-02-17 14:36:56:500 (IB) IB.AccountUpdatesRequest.Send: account='' subscribe=True
        2010-02-17 14:36:57:625 (IB) Cbi.Connection.ProcessEventArgs.ConnectionStatusEv entArgs Connected Connected NoError
        2010-02-17 14:36:57:640 (IB) Cbi.Connection.ProcessEventArgs.AccountEventArgs: name='Sim101'
        2010-02-17 14:36:57:656 (Db) Db.Globals.Recover1: 'Sim101'
        2010-02-17 14:36:57:718 (Db) Db.Globals.Recover2: 'Sim101'
        2010-02-17 14:36:57:718 (IB) Cbi.Account.RestorePositionExecutions1: account='Sim101'
        2010-02-17 14:36:57:718 (IB) Cbi.Account.RestorePositionExecutions9: account='Sim101'
        2010-02-17 14:36:57:937 (IB) Cbi.AccountEventArgs.Process: Sim101
        2010-02-17 14:36:57:937 (IB) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='BuyingPower' Currency='Unknown' Value=200000
        2010-02-17 14:36:57:937 (IB) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='CashValue' Currency='Unknown' Value=100000
        2010-02-17 14:36:57:937 (IB) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='ExcessEquity' Currency='Unknown' Value=200000
        2010-02-17 14:36:57:937 (IB) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='InitialMargin' Currency='Unknown' Value=0
        2010-02-17 14:36:57:937 (IB) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=0
        2010-02-17 14:36:57:937 (IB) Cbi.ConnectionStatusEventArgs.Process: Connected Connected
        2010-02-17 14:36:57:937 (IB) defaultTimeToClose=21/01/2009 00:00:00 flattenAll=False
        2010-02-17 14:36:57:953 Restoring workspace 'Default'...
        2010-02-17 14:37:00:734 Restoring workspace 'Untitled1'...
        2010-02-17 14:37:03:531 ERROR: Error validating request:-'zb' : cause - Please enter exchange ServerValidateError
        2010-02-17 14:37:04:625 Setting global sim mode...
        2010-02-17 14:37:04:625 Setting ATI...
        2010-02-17 14:37:04:625 Starting messages timer...
        2010-02-17 14:37:04:625 Starting news timer...
        2010-02-17 14:37:04:625 Activating hot keys
        2010-02-17 14:37:04:625 ApplicationStart done, took 12,8 secs
        2010-02-17 14:37:37:421 ERROR: Data.Bars.Load3: System.IO.IOException: Impossible de créer le répertoire ou le fichier.

        ŕ System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
        ŕ System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
        ŕ System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
        ŕ NinjaTrader.Data.Bars.Load()

        Comment


          #5
          Is your <my documents> directory located on your local hard drive or somewhere else?

          Comment


            #6
            My "Mes documents\NinjaTrader 7" folder is located on a virtual disk to protect datas, via microsoft Junction:


            This junction is active since 3-4 months without problem, with a large amount of files in "Mes documents\NinjaTrader 7\db\cache" folder.
            I also tried to remove half of the files, with no effect on the message.

            I tried to run NT7 without the junction, the problem disapear.
            So which folder should not be used with junction ??

            Thanks for your help.
            Arnaud

            Comment


              #7
              Sorry we are not experts on this MS software. You needed to contact MS in order to clarify on details. Please make sure NT could write data to any file and folder of <My documents>/NinjaTrader7

              Comment


                #8
                Ok, thanks.
                After some tests, it appears that only <My documents\NinjaTrader 7\db\cache> directory should not be used with Junction.

                Thanks for your help
                Arnaud

                Comment


                  #9
                  Unable to write cache data message, NT7B14 on Win XP

                  Started getting these error boxes today. Performance of NT7 seems OK so far. Have never seen this before. This is a completely standard installation of NT7 on local hard disk C:\

                  Comment


                    #10
                    Ricam,

                    Can you please post or send your log files in so that we may take a look.

                    Are you running your My Documents folder in a custom location or any other setup options that me be different on your PC as well? Also, What Anti Virus setup are you running?

                    Can you please send me your trace files for today or the day that this occurred so that I may further assist. You can post them on the forum or if your more comfortable you can send them to support at ninjatrader dot com with the subject line ATTN: Brett and reference this forum post.

                    You can find these files at the following locations, please attach these to a return email:
                    Start Menu--> My Documents--> NinjaTrader 7--> Trace--> trace.20100428 for today. (trace.yyyymmdd for any other date)

                    Start Menu--> My Documents--> NinjaTrader 7--> Log--> log.20100428 for today. (log.yyyymmdd for any other date)
                    BrettNinjaTrader Product Management

                    Comment


                      #11
                      Hello,

                      from the problem I experienced, a junction directory is limited to 11 000 files.
                      Same for mounted virtual directory.

                      Regards.
                      Arnaud

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      587 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      341 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      103 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      555 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      552 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X