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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X