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 Christopher_R, Today, 12:29 AM
        0 responses
        6 views
        0 likes
        Last Post Christopher_R  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,235 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        3 views
        0 likes
        Last Post thread
        by thread
         
        Started by jclose, Yesterday, 09:37 PM
        0 responses
        7 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,415 views
        0 likes
        Last Post Traderontheroad  
        Working...
        X