Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Method Access Question

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

    Method Access Question

    Looking to create variables which are not published.

    Found this in the help files:

    Declaring a Method
    A method must first be declared before you can use it in your script.


    [Method Access] [Return Data Type] [Name] (Optional parameters)


    Method Access - Sets the access to the method. This topic can be a little complex so lets just use the access level "private" which is all you will ever likely need.

    how do you declare a non-published variable ?

    #2
    Faspomy, I'm sorry not following you here - what are you exactly looking to achieve? Variables and dataseries in an indicator for example are private and nonexposed unless you they are plotted for visualization, are you trying to suppress this?

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      what are you exactly looking to achieve?
      I would like to exclude certain variables from becoming parameters.



      For example: in the picture here. The single parameter is 'period'. I would like to create 11 variables, but only have one variable exposed as a parameter called 'period'.

      How do you create variables without them being published parameters ?

      Comment


        #4
        Then just do not create them as user defined inputs, but as standard variables that would not be exposed.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        573 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        575 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X