Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drop Optimized Backtest Run Based on Performance Metric

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

    Drop Optimized Backtest Run Based on Performance Metric

    Hi, apologize if this has been asked before however my searches failed to produce the answer.

    For memory-saving purposes (if this is a valid question), is there a way to drop an iteration from an optimized backtesting run based on a metric from the output; i.e. performance < 100, number of trades < 100, etc. I don't have value in storing low-performing iterations if they will just be dropped at the end.

    Thx in advance.


    #2
    Hello sumobull,

    Thanks for writing in and welcome to the Forums!

    There are no options available for "dropping an iteration" from an optimization run in the Strategy Analyzer window.

    You can fine-tune the input parameters of a strategy through optimization. Optimization is the process of testing a range of values through iterative backtests to determine the optimal input values over the historical test period based on your optimization fitness.

    The 'Keep best # results" setting sets the number of best results to display when the optimization is complete.

    We can easily control the number of iterations involved and we can also consider writing our strategies to use IsInstantiatedOnEachOptimizationIteration = false; (Which requires that we reset class level variables in State.DataLoaded.)

    See the help guide documentation below for more information on IsInstantiatedOnEachOptimizationIteration and optimization tips to improve performance
    .
    IsInstantiatedOnEachOptimizationIteration — https://ninjatrader.com/support/help...niteration.htm

    Optimization Tips — https://ninjatrader.com/support/helpGuides/nt8/index.html?optimize_a_strategy.htm#UnderstandingFa ctorsThatAffectOptimizationPerformance
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X