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

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 -

        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Max238, Today, 01:28 AM
        2 responses
        26 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by Shansen, 08-30-2019, 10:18 PM
        25 responses
        949 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        8 responses
        41 views
        0 likes
        Last Post JonesJoker  
        Started by timko, Today, 06:45 AM
        0 responses
        4 views
        0 likes
        Last Post timko
        by timko
         
        Started by Waxavi, 04-19-2024, 02:10 AM
        2 responses
        39 views
        0 likes
        Last Post poeds
        by poeds
         
        Working...
        X