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 rhyminkevin, Today, 04:58 PM
            4 responses
            52 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Started by iceman2018, Today, 05:07 PM
            0 responses
            5 views
            0 likes
            Last Post iceman2018  
            Started by lightsun47, Today, 03:51 PM
            0 responses
            7 views
            0 likes
            Last Post lightsun47  
            Started by 00nevest, Today, 02:27 PM
            1 response
            14 views
            0 likes
            Last Post 00nevest  
            Started by futtrader, 04-21-2024, 01:50 AM
            4 responses
            50 views
            0 likes
            Last Post futtrader  
            Working...
            X