Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Missing first 20 bar information.

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

    Missing first 20 bar information.

    Dear Sirs,

    I am new to NT, and have been playing around with ninja script, and the indicators.

    I have noticed that when I view a chart the first 20 bars do not have any volume shown in the indicator, this is also true of a very simple indicator that I have written just to display the close price (as part of my initial fore-ray into of ninjascript), but the values do appear in the data window.

    Obviously I must be doing something wrong, but for the life of me I can not see what.

    Any help that can be given would be much appreciated.

    TIA,

    Graham.

    #2
    Set "Show unstable period for indicators" in the chart properties window to True.

    Comment


      #3
      Thanks Anagoge - here the link to the Chart Properties helppage -http://www.ninjatrader-support.com/H...roperties.html

      Comment


        #4
        Anagoge,

        Thanks for that, it worked perfectly.

        Any ideas why it affects things like volume though?

        Cheers,

        Graham.

        Comment


          #5
          Do you know if you can set this option from within ninjascript, so that it can be set automatically without the users intervention?

          Comment


            #6
            You can try BarsRequired = 0 in Initialize(). Or just save your default chart template with the setting you want to use predefined.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              I see that this setting has been removed from NinjaTrader 7. I can't see why as it means that you can't even plot volume for the first 20-bars.

              Comment


                #8
                Hello TheCatMan,

                Yes, this has been changed for version 7. You can access a similar property for each indicator through. Right Click > Indicators screen. You can set Maximum bar look back to TwoHundredFiftySix or infinite.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                71 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                42 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                25 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                28 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                56 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X