Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy analyzer optimization issue, parameter optimization not available

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

    strategy analyzer optimization issue, parameter optimization not available

    hi all

    I am working on a strategy in strategy analyzer. I can run a backtest fine.
    When I switch to the optimizer, I am not seeing the little triangles to set the parameter range (min/max/increment).

    Any clue why this might be?

    Onn

    #2
    Hello onnb1,

    Thanks for your post.

    For the strategy to be optimized, you would need to have public properties of what specifically you want to optimize.

    For example, test the SampleMACross over strategy in the optimizer. Note that in the user interface it exposes the period for the fast and slow moving averages, which can be optimized because in the strategy they are created as public properties.

    Comment


      #3
      Thanks for the follow up Paul.
      I am able to get it to work but have a follow up question for you.


      My strategy properties were all public.
      I had a look at the SampeMACross and the difference is in the decorator like this one here

      Code:
      [Range(1, int.MaxValue), NinjaScriptProperty]
      I added the above to my strategy and the optimization now works fine.
      So my question is for a property to available for optimization, it must
      1. Have a range defined and
      2. Be public

      Onn

      Comment


        #4
        Hello onnb1,

        Thanks for your reply.

        For optimization you only need it to be a public property AND the [NinjascriptProperty] attribute.

        The range is not a requirement.

        Reference: https://ninjatrader.com/support/help...yattribute.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        22 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        120 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X