Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent Indicator Parameter Box options from being required to initialize parameters

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

    Prevent Indicator Parameter Box options from being required to initialize parameters

    I have an Indicator with 30 or so parameters that show in the Parameter Box when I configure the indicator to a chart.

    What I would like to do is call this indicator from within a strategy without filling in all these "display" like parameters. I would like to know how to selectively make a parameter show in the Parameter Box to configure an indicator but not have NT use them to generate an constructor.

    I would like to select only a few of the Parameters to be passed from the strategy rather than all 30.

    Is there an Attribute I can set like.
    [DoNotIncludeInConstructor()]

    Thanks

    #2
    Hello NJA_MC,

    Thank you for your post.

    I am not aware of any way to achieve this idea in NinjaScript.

    Comment


      #3
      Originally posted by NJA_MC View Post
      I have an Indicator with 30 or so parameters that show in the Parameter Box when I configure the indicator to a chart.

      What I would like to do is call this indicator from within a strategy without filling in all these "display" like parameters. I would like to know how to selectively make a parameter show in the Parameter Box to configure an indicator but not have NT use them to generate an constructor.

      I would like to select only a few of the Parameters to be passed from the strategy rather than all 30.

      Is there an Attribute I can set like.
      [DoNotIncludeInConstructor()]

      Thanks
      Put those parameters into a Category called anything other than Parameters. Note: a Category, not a GridCategory.

      Comment


        #4
        Originally posted by koganam View Post
        Put those parameters into a Category called anything other than Parameters. Note: a Category, not a GridCategory.
        Thanks!

        That worked!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        577 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X