Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    Paul H.NinjaTrader Customer Service

    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
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,610 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        16 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X