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 judysamnt7, 03-13-2023, 09:11 AM
                4 responses
                57 views
                0 likes
                Last Post DynamicTest  
                Started by ScottWalsh, Today, 06:52 PM
                4 responses
                36 views
                0 likes
                Last Post ScottWalsh  
                Started by olisav57, Today, 07:39 PM
                0 responses
                7 views
                0 likes
                Last Post olisav57  
                Started by trilliantrader, Today, 03:01 PM
                2 responses
                19 views
                0 likes
                Last Post helpwanted  
                Started by cre8able, Today, 07:24 PM
                0 responses
                9 views
                0 likes
                Last Post cre8able  
                Working...
                X