Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rhyminkevin, Today, 04:58 PM
    1 response
    29 views
    0 likes
    Last Post Anfedport  
    Started by iceman2018, Today, 05:07 PM
    0 responses
    4 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    49 views
    0 likes
    Last Post futtrader  
    Working...
    X