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
      BertrandNinjaTrader Customer Service

      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 cre8able, Today, 03:20 PM
                0 responses
                5 views
                0 likes
                Last Post cre8able  
                Started by Fran888, 02-16-2024, 10:48 AM
                3 responses
                47 views
                0 likes
                Last Post Sam2515
                by Sam2515
                 
                Started by martin70, 03-24-2023, 04:58 AM
                15 responses
                114 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by The_Sec, Today, 02:29 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by jeronymite, 04-12-2024, 04:26 PM
                2 responses
                31 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Working...
                X