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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            87 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            131 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            106 views
            0 likes
            Last Post CarlTrading  
            Working...
            X