Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I get my script parameters to show up in the property grid?

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

    How can I get my script parameters to show up in the property grid?

    When I create a new instance of my strategy I don't see any of my public parameters (properties). I used the attribute notation below:


    [Description("test")]
    [Category("Parameters")]
    public int test = 10;

    #2
    You need the get and set lines. For instance:

    [Description("Period for fast MA")]
    [Category("Parameters")]
    public int Fast
    {
    get { return fast; }
    set { fast = Math.Max(1, value); }
    }
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      What about the optimization properties? Can min, max and increment be entered programatically?

      Comment


        #4
        >> Can min, max and increment be entered programatically?
        Unfortunately this is not supported.
        DierkNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by vdoan20, Yesterday, 08:30 PM
        0 responses
        5 views
        0 likes
        Last Post vdoan20
        by vdoan20
         
        Started by gupagoer, Yesterday, 07:42 PM
        0 responses
        1 view
        0 likes
        Last Post gupagoer  
        Started by Holligoly, Yesterday, 05:13 PM
        2 responses
        7 views
        0 likes
        Last Post Holligoly  
        Started by Raginpower, Yesterday, 01:53 PM
        0 responses
        14 views
        0 likes
        Last Post Raginpower  
        Started by andrewjoseph939, Yesterday, 12:55 PM
        0 responses
        30 views
        0 likes
        Last Post andrewjoseph939  
        Working...
        X