Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimization values

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

    Optimization values

    I've defined the property like below but it doesn't give me options in Optimization in Strategy Analyzer to define the range for back test like https://ra3-gmail.tinytake.com/msc/N...N18xOTIxNzg4Ng

    [Range(0, Int32.MaxValue)]
    [NinjaScriptProperty]
    [Display(Name="Hull Lookback Period", Order=2, GroupName="Hull Lookback")]
    public int HullLookBack
    { get; set; }


    Am I missing any other setting?

    #2
    Hello ark321,

    From the given sample I don't see a problem, the NinjaScriptProperty is present so that should appear as an optimizable property. I would suggest closing the analyzer window, recompile, then re open the analyzer and switch to optimization again. The same code is generated using the strategy builder so that should work.

    If you still have problems getting it to appear in the optimizer please try the following and then attach the resulting strategy.
    1. Create a new strategy using the strategy builder
    2. Add a int user input with the same values you had used
    3. Generate the strategy
    4. Test in the optimizer that the property cannot be used with the range
    5. Attach the .cs file for the strategy to the post.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 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
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X