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 GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,228 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        440 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X