Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 jxs_xrj, 01-12-2020, 09:49 AM
            5 responses
            3,289 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            5 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            8 responses
            61 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by Option Whisperer, Today, 09:55 AM
            0 responses
            5 views
            0 likes
            Last Post Option Whisperer  
            Started by halgo_boulder, 04-20-2024, 08:44 AM
            2 responses
            24 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X