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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 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