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

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 trilliantrader, 04-18-2024, 08:16 AM
    4 responses
    18 views
    0 likes
    Last Post trilliantrader  
    Started by mgco4you, Today, 09:46 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by wzgy0920, Today, 09:53 PM
    0 responses
    9 views
    0 likes
    Last Post wzgy0920  
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    10 views
    0 likes
    Last Post Rapine Heihei  
    Working...
    X