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 usazencort, Today, 01:16 AM
                0 responses
                1 view
                0 likes
                Last Post usazencort  
                Started by kaywai, 09-01-2023, 08:44 PM
                5 responses
                602 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by xiinteractive, 04-09-2024, 08:08 AM
                6 responses
                22 views
                0 likes
                Last Post xiinteractive  
                Started by Pattontje, Yesterday, 02:10 PM
                2 responses
                20 views
                0 likes
                Last Post Pattontje  
                Started by flybuzz, 04-21-2024, 04:07 PM
                17 responses
                230 views
                0 likes
                Last Post TradingLoss  
                Working...
                X