• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars to load priority

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

    Bars to load priority

    Hi-

    If I specify (programmatically) that a strategy needs the equivalent of 10 days of data loaded, but when I load the strategy into the "strategy manager" I set only 3 days to load, what command to the strategy will take precedence?

    #2
    Hi cgeorgan,

    How have you hard-coded this?

    Generally, the Min. Bars Required set in the UI will be used.
    TimNinjaTrader Customer Service

    Comment


      #3
      Based on the minimum bars required by two indicators used within the strategy.

      Comment


        #4
        Hi cgeorgan,

        Can you provide a code snippet?
        TimNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Tim View Post
          Hi cgeorgan,

          Can you provide a code snippet?
          It's not really that complicated; let me put it another way:

          If I have a strategy that uses two indicators that effectively need (each) 5 days of historical data, and I instruct the strategy - within the strategy's parameters - to load only 2 days, will that setting override the requirement that the indicators within the strategy load 5 days?

          Comment


            #6
            Hi cgeorgan,

            Understood, I'm just looking for the line of code that you use in the indicator for that requirement. Do you have any such code line in the indicator?
            TimNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Tim View Post
              Hi cgeorgan,

              Understood, I'm just looking for the line of code that you use in the indicator for that requirement. Do you have any such code line in the indicator?
              No, I set it when I add a new strategy to the "strategies" tab.

              Comment


                #8
                Hi cgeorgan,

                If nothing is hard coded to the indicators, the Strategy setting for Min. Bars Required will be used.
                TimNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by teafortwo, Yesterday, 04:26 AM
                4 responses
                12 views
                0 likes
                Last Post bltdavid  
                Started by borjanews, Yesterday, 06:13 PM
                0 responses
                4 views
                0 likes
                Last Post borjanews  
                Started by Austiner87, Yesterday, 05:13 PM
                0 responses
                2 views
                0 likes
                Last Post Austiner87  
                Started by Austiner87, Yesterday, 04:59 PM
                0 responses
                4 views
                0 likes
                Last Post Austiner87  
                Started by Austiner87, Yesterday, 04:58 PM
                0 responses
                1 view
                0 likes
                Last Post Austiner87  
                Working...
                X