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

Parameters of backtesting

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

    Parameters of backtesting

    Hello, when I make an optimization with my strategy, the parameters of the results are disordered and they don't appear in the same order that can I see in my chart.

    How can I get the same order with these parameters?

    Thanks in advance.

    #2
    Hello soyjesus,

    Thanks for your post.

    The order for listing parameters in the Optimization results grid of the Strategy Analyzer will list in the order that they are created in the strategy.

    To have these listed as you see in the property grids, the properties would have to be listed/created in the same order as the Order parameter for the Display attribute.

    For example:

    Code:
    #region Properties
    [NinjaScriptProperty]
    [Range(1, int.MaxValue)]
    [Display(Name="A1", [B]Order=1[/B], GroupName="Parameters")]
    public int A1
    { get; set; }
    
    [NinjaScriptProperty]
    [Range(1, int.MaxValue)]
    [Display(Name="B2", [B]Order=2[/B], GroupName="Parameters")]
    public int B2
    { get; set; }
    
    [NinjaScriptProperty]
    [Range(1, int.MaxValue)]
    [Display(Name="C3", [B]Order=3[/B], GroupName="Parameters")]
    public int C3
    { get; set; }
    #endregion
    Above we see each property is created in the same order as the how the Order parameter increments. We can then expect these properties to list in the same order in the Optimization grid of the Strategy Analyzer as we see in a property grid.

    Let me know if you have any additional questions.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gentlebenthebear, Today, 01:30 AM
    2 responses
    13 views
    0 likes
    Last Post gentlebenthebear  
    Started by Kaledus, Today, 01:29 PM
    2 responses
    7 views
    0 likes
    Last Post Kaledus
    by Kaledus
     
    Started by frankthearm, Yesterday, 09:08 AM
    13 responses
    45 views
    0 likes
    Last Post frankthearm  
    Started by PaulMohn, Today, 12:36 PM
    2 responses
    16 views
    0 likes
    Last Post PaulMohn  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    2 responses
    56 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Working...
    X