Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Add

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

    Problem with Add

    Hello,

    I'm using the Add method (I.E. Add(PeriodType.Day,1) and I have a problem with it. Sometimes, with big periods like a week, CurrentBars is tiny. Sometimes its even 0. Can I force the script in some way that causes it to load more bars?

    Greetings!

    #2
    Hello,
    There is not a way from code to add more bars. This is set by the chart or the Strategy parameters if you are adding it from the strategies tab.
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_CodyB View Post
      Hello,
      There is not a way from code to add more bars. This is set by the chart or the Strategy parameters if you are adding it from the strategies tab.
      I don't see such thing. Can you show me where is it?

      Comment


        #4
        Hello,
        If you are using the strategy on a chart you will right click on the Chart> Data Series> Days to Load.
        If you are using the strategy from the strategies tab you will Right Click> Select New Strategy, or Right Click on the Strategy and Select Edit Strategy,> Time Frame > Days to load.
        Cody B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_CodyB View Post
          Hello,
          If you are using the strategy on a chart you will right click on the Chart> Data Series> Days to Load.
          If you are using the strategy from the strategies tab you will Right Click> Select New Strategy, or Right Click on the Strategy and Select Edit Strategy,> Time Frame > Days to load.
          Ok, but sometimes the Add method simply don't get any candle, even with >30 days in the main graphic, I get one or no week candles to work with.

          Comment


            #6
            Hello,
            Can you provide a reproducible scenario and the script that you are using where this is occurring?
            I look forward to your reply.
            Cody B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            600 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            346 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            558 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X