Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Saving Optimization Results Deletes Original Strategy

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

    Saving Optimization Results Deletes Original Strategy

    I am trying to save the results of a Strategy Optimization. After NT save the results, it replaces the strategy I was optimizing with the name of the results I saved.


    For example…



    I optimize a strategy name “ACME_System”, then I save the results as “Optim_acmesys”. Then I switch to a chart and try to add the “ACME_System” strategy, but when the NT dialog pops up for me to select a strategy, “ACME_System” is gone and has been replaced by “Optim_acmesys”.


    Then I checked directory …\ Documents\NinjaTrader 7\bin\Custom\Strategy and “ACME_System.cs” and it is still there.


    Then I open and edit “ACME_System.cs” in NT and recompile. It recompiles successfully, but when I switch back to a chart to try and add “ACME_System” strategy, I cannot. NT still only shows strategy “Optim_acmesys” available to add to a chart.


    I already tried uninstalling NT and completely reinstall the latest version. It didn`t help.


    The only way around this problem is to restart NT and delete all Strategy Analyzer results, then delete the original strategy source code, restart NT, recreate the original strategy source code and recompile it again.


    Can you pls explain why NT won`t allow me to save multiple versions of optimization results without removing the original strategy.

    #2
    Hello,

    Thank you for the question.

    I tried this process with the SampleMACrossover strategy that comes with NinjaTrader and did not have the same outcome you are describing.

    The process I had followed was the following:

    Open Analyzer
    Select Optimizer
    Select Instrument
    Select Strategy
    Changed 1 parameter to optimize on
    Ran optimization
    Clicked the "Save Optimization results" button and provided the name SampleMACrossover1
    Opened a chart
    Right click and select Strategies
    Selected SampleMACrossover.

    These were the steps I had followed, were you doing the same?

    The question sounds like a template has been saved for the strategy with a different name rather than the optimization results, can you check the folder: Documents\NinjaTrader 7\templates\Strategy and see if there is a file listed for this strategy? If so, remove the file by taking it out of the folder or deleting it. Now open a chart and see if this was the resolution.

    If not please let me know if I had followed the same process and we can go from there.

    I look forward to being of further assistance.

    Comment


      #3
      Thanks for the quick reply.

      I`ve repeated the steps as you typed them out for me and I came up with the same results as you.

      I`ve also tested saving Backtests, Optimizations and Walkforward analysis.

      I can`t seem to reproduce the error.

      If it does happen again. I will let you know when I can reliably reproduce it.

      Thanks again.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X