Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Variable Not Optimizable

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

    Variable Not Optimizable

    Having issue with Optimization. I created a variable, but in Optimization section it doesn't appear. What I'm doing wrong?
    In another strategy the same code works great.
    Help please.

    Code:
    Code:
            [Display(ResourceType = typeof(Custom.Resource), Name = "SL", GroupName = "4. Orders", Order = 3)]
            [NinjaScriptProperty]
            public int SlSize
            {
                get;
                set;
            }
    The same code but with another variable is working fine in this Strategy (look screenshot):


    Code:
            [NinjaScriptProperty]
            [Display(Name="Period HMA", Order=2, GroupName="1. Symbol Parameters")]
            public int Period
            { get; set; }
    Captured with Lightshot

    #2
    Hello YevhenShynkarenko,

    I tried this property in a strategy and can see it listed, are you certain you have compiled this change in? Have you also tested closing the analyzer and re opening it?

    The only item I can see is that you used the ResourceType and that is not needed for your custom properties but this would not cause it to be hidden. You can simplify it like your other property:

    Code:
    [Display(Name = "SL", GroupName = "4. Orders", Order = 3)]
    [NinjaScriptProperty]
    public int SlSize { get; set; }

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 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
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X