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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        35 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        13 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X