Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Variables in Indicator Properties

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

    Variables in Indicator Properties

    Hi All,

    I've developed an indicator which works well. I configured numerous public variables, around twenty, for user configuration; mostly color selections and bool variables to enable certain features.

    However, all of the public variables show up when using the strategy wizard. Also, when I try to "Add" the indicator to my strategy I get an error.

    I've been referring the jtRealStats indicator as a guide for configuring the public variables and property menu.

    How do I limit or control the display of so many variables?

    I've attached my indicator for review. It basically draws rectangles during certain parts of the day when the market likes to make a move. Feel free to use it if you want it.

    Thanks in advance!
    Attached Files

    #2
    Hi sheimdal, what issue do you see trying to Add() it in your strategy?

    Whatever you have exposed as public user variable (properties section) would be included in the constructor for the study, so NT would expect you calling the indicator with this overload. What can be omitted is the IDataSeries input, that's why indicators typically have two overloads to call them by.

    Comment


      #3
      Thanks for the quick reply.

      All the Public variables are showing up, around twenty of them. How do I format the code to limit the number to something manageable that is not running off the screen or showing up when the indicator is selected in the Strategy Wizard.

      For example; the jtRealStats indicator has many public variables with only a couple needed when using "Add" to include the indicator in a strategy. I can't figure out how to accomplish the same thing.

      Comment


        #4
        Originally posted by sheimdal View Post
        Thanks for the quick reply.

        All the Public variables are showing up, around twenty of them. How do I format the code to limit the number to something manageable that is not running off the screen or showing up when the indicator is selected in the Strategy Wizard.

        For example; the jtRealStats indicator has many public variables with only a couple needed when using "Add" to include the indicator in a strategy. I can't figure out how to accomplish the same thing.
        Tag the variables that you do not want to expose for calling, with a Category attribute instead of a GridCategory attribute; and the Category must be named something other than Parameters.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 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
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X