Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

region vairables and region properties

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

    region vairables and region properties

    When assigning region variables, how come sometimes there is coding required in the region properties section such as the 'set and get' while other times the region properties section is blank.

    In the references sample both have region variables, howerver only one has coding in the properties section:

    1. Strategy: Backtesting NinjaScript Strategies with an intrabar granularity
    2. Strategy: Trading crossovers

    #2
    Hello Lisa1980,

    Variables in the properties region are used for public inputs. These could be MA period inputs or time inputs. Public properties can be set at run time without having to hard code.

    If there is not an associated public property for a variable, then this means its use is intended internally for the strategy / indicator but not not to be customized through inputs.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi Ryan,

      In both of the reference samples I listed they are public properties and the one that shows intentions through inputs which is the crossover start which it has highesthigh=0 and lowestlow=0 and then request inputs...has no properties? why is that?
      Thanks
      Last edited by Lisa1980; 07-12-2010, 04:53 PM.

      Comment


        #4
        Lisa, the highestHigh and lowestLow are not user defined inputs having a public property as well, they are just variables that record values for later reference throughout the code.

        Please check into this sample to see how user defined inputs would be setup in NinjaScript -

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        595 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        554 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X