Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

File XML

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

    File XML

    Hello, I have the XML file of a strategy template that I have created, but I have lost the Ninjatrader file, because I had to reinstall Ninjatrader due to problems on my computer. How can I retrieve my strategy, from the XML file?

    #2
    Hello soyjesus,

    Thanks for your message.

    NinjaScript strategy templates are stored in the Documents\NinjaTrader 8\templates\Strategy\ folder. Please check this folder to see if there are any existing templates there. If there are not any templates, then I would suggest checking a backup, or possibly an older NinjaTrader 8 folder in the Documents folder if you have renamed the Documents\NinjaTrader 8 folder while performing the uninstall and reinstall process.

    Creating a backup can be helpful in case you need to recover from a situation like this. Information on creating and loading backups is included below.

    Backup/Restore - https://ninjatrader.com/support/help...p__restore.htm

    We look forward to assisting.

    Comment


      #3
      Ok. I understand you, buy I dont' have any backup. Is there any way to recreate the original strategy from the XML file? I don't have any problem to do ir manually.

      Comment


        #4
        Hello soyjesus,

        NinjaScript Strategy templates will only include the parameters used to set up that strategy and the original script cannot be created from the parameters alone. You could try checking the Documents\NinjaTrader 8\strategyanalyzerlogs\ folder to see if there is a .CS file for that strategy that can help to recover it. The CS file would exist there if you have backtested the strategy with the Strategy Analyzer.

        If that CS file is not found there and it is in not in your Documents\NinjaTrader 8\bin\Custom\Strategies\ folder, and it is not in a backup, you may need to rebuild it.

        If you are referring to Atm strategies instead of NinjaScript strategies, these would be found in the Documents\NinjaTrader 8\templates\AtmStrategy folder. Atm Strategy templates contain everything needed for the Atm strategy and would just need to be included in that folder.

        We look forward to assisting.

        Comment


          #5
          Hello,

          I put the the .xml files of the strategy templated in the Documents\NinjaTrader 8\templates\Strategy\ folder. But all of them disappear as soon as I start the NT8.

          Thanks,

          -Vijay

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          43 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          29 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          46 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          38 views
          0 likes
          Last Post CarlTrading  
          Working...
          X