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 Brevo, Today, 01:45 AM
                0 responses
                3 views
                0 likes
                Last Post Brevo
                by Brevo
                 
                Started by aussugardefender, Today, 01:07 AM
                0 responses
                3 views
                0 likes
                Last Post aussugardefender  
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                240 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                384 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Started by oviejo, Today, 12:28 AM
                0 responses
                6 views
                0 likes
                Last Post oviejo
                by oviejo
                 
                Working...
                X