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 Aviram Y, Today, 05:29 AM
        0 responses
        1 view
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        25 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        7 responses
        34 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cls71, Today, 04:45 AM
        0 responses
        6 views
        0 likes
        Last Post cls71
        by cls71
         
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        216 views
        1 like
        Last Post PaulMohn  
        Working...
        X