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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        82 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X