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 Option Whisperer, Today, 09:55 AM
            1 response
            11 views
            0 likes
            Last Post bltdavid  
            Started by port119, Today, 02:43 PM
            0 responses
            1 view
            0 likes
            Last Post port119
            by port119
             
            Started by Philippe56140, Today, 02:35 PM
            0 responses
            3 views
            0 likes
            Last Post Philippe56140  
            Started by 00nevest, Today, 02:27 PM
            0 responses
            2 views
            0 likes
            Last Post 00nevest  
            Started by Jonafare, 12-06-2012, 03:48 PM
            5 responses
            3,986 views
            0 likes
            Last Post rene69851  
            Working...
            X