Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X