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