Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy templates gone

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

    Strategy templates gone

    Hi,

    I ran a lengthy optimization in strategy analyzer that exceeded machine limits. The Windows Task Manager showed Disk at 100% and RAM at near full. The optimization looked frozen and the whole machine was barely responsive (the Task Manager itself took a few minutes to open). I closed NT via 'End Process' and restarted the machine. Following that the strategy templates are now gone. Not just the strategy that was running before. All of them.

    I closed NT, cleared the cache and restarted the machine again (complete shutdown then start). It didn't help.

    The user Documents\NinjaTrader 8\templates\Strategy folder is empty. (as well as \StrategyAnalyzer.) I previously made a backup of this folder but not all current templates are in this backup. I had many.

    Is there a way to restore them? How can they be deleted like that? We're talking physical xml files that were sitting in the hard drive for months and years. One time the program terminates in a disorderly manner and the files are simply gone? Just like that?

    #2
    Hello digibob, thanks for writing in.

    It would be unexpected for any files to get deleted from the PC without user action, and we do not have any other users writing in about this issue. Do you have any antivirus programs on your PC that could have possibly cleaned up the files? If so, add an exception for NinjaTrader and the Documents/NinjaTrader 8 folder in the antivirus settings. The only way to recover these files would be to check if they are in the recycle bin. If you have made a backup recently the file should be there as well:



    Please let me know if I can assist any further.

    Comment


      #3
      Hi Chris, thank you for the reply.

      By now I have accepted that my templates are gone (the ones I didn't backup). This is just reporting on my part. The fact is NT alone was running when the working IO disk area got full, and the result was an NT folder got 'hit'. There's all the connection we need. No antivirus or anything else was involved.

      Also I neglected to mention, the last thing I did prior to running the optimization was saving a template. It could be that following this operation the program continued to hold a handle to the templates folder, then when I hit 'End Process' the OS used that handle to wipe out the contents of the folder. So the program may not be directly responsible for the deletion. But a program should exercise safety and avoid such edge cases too.

      Whatever NT wants to do with this reporting is up to NT.

      Kind regards.

      Comment


        #4
        This just happened to me as well. I wish NT would not delete the strategy templates if there is some issue with the strategy. Accidentally using Time[0] in setdefaults caused my strategy to compile fine but disappear from Strategies list and NT deleted the templates. My strategy has a LOT of settings and I'm really really set back by this. I think it's not necessarily to proctively delete a strategy's templates if something causes it to disappear from the strategies list..

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        20 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        119 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X