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

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 Belfortbucks, Today, 09:29 PM
        0 responses
        3 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        150 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Working...
        X