Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer Optimization Produced Questionable Results

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

    Strategy Analyzer Optimization Produced Questionable Results

    Hello,

    When putting my strategy to the test in the Strategy Analyzer, I set the "NinjaScriptStrategyParameters" option to "Optimize" as seen in the first image.

    I set it to show the 5 best results based on "Max. net Profit" which can be seen in the second photo. As you can see, the parameters for the First and Third iterations are almost identical except for one thing, the First has "False" for "(Backtest)" and the Third has True for "(Backtest)".

    Here are a few questions I have:

    1.) Why does the optimization include iterations with Backtest set to True and False?

    2.) What is the optimization doing when Backtest is set to True and False?

    3.) How could the performance change, as seen here, by setting Backtest from True to False?
    Attached Files

    #2
    Don22Trader1 By the looks of it, Backtest is a Strategy parameter that you have created in your Strategy code. If not, you may wish to examine the code to see where/how it is created and where it is set and used. In any case, it seems to be a bool and by setting it to Optimize, you are telling the Strategy Analyzer to run individual tests with it as True and as False, hence the results you are seeing. If you only want one or other of True or False, select the value you want in the dropdown (not Optimize) and that will make it fixed. Regardless, how that parameter is used in the code determines its effect on the results. You'll need to look at your code carefully to see what is happening.

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    630 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
    566 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