• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator doesn't start at the first bar

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

    Indicator doesn't start at the first bar

    Hello,
    I have the problem that the indicators in the chart (except VOL) start only at the 20th bar, even if they don't require historical bars. That is really bad. I want to display a fixed number of days an the indicators should be displayed for every bar. How can I do that?

    Thanks


    #2
    Hello fawkes851,

    This is due to the BarsRequiredToPlot default value is 20. You can create a copy of the script and set this to one if the script does not need to look backwards and use barsAgo indexes that are greater than one.

    https://ninjatrader.com/support/help...iredtoplot.htm

    Below is a link to a video that demonstrates copying a script.
    https://www.youtube.com/watch?v=BA0W...utu.be&t=8m15s
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks, that does the trick.

      The other problem I have is that the indicators are not drawn for the latest (current) bar. Is there a solution for that?
      Attached Files

      Comment


        #4
        Hello fawkes851,

        You can set Calculate to 'On price change' or 'On each tick' in the indicator parameters.

        https://ninjatrader.com/support/help...torsParameters
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Ok, got it. Thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by EnveousColnago, Today, 06:58 AM
          0 responses
          4 views
          0 likes
          Last Post EnveousColnago  
          Started by GLFX005, Today, 05:48 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Started by ttodua, Today, 02:51 AM
          0 responses
          3 views
          0 likes
          Last Post ttodua
          by ttodua
           
          Started by TSmith, Today, 01:40 AM
          0 responses
          10 views
          0 likes
          Last Post TSmith
          by TSmith
           
          Started by ypbtrainer, Yesterday, 05:38 PM
          2 responses
          10 views
          0 likes
          Last Post ypbtrainer  
          Working...
          X