Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lookback period?

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

    Lookback period?

    This maybe a stupid question but I cannot find where to change this...

    I have a chart and all I do now is plot CurrentBar as an indicator. I have nothing else on there. It only appears in the chart after 20 bars (so CurrentBar starts at 20).
    There is probably a setting somewhere where it says that it only start plotting at the 20th bar? Otherwise, why is this happening?

    #2
    There are two ways to do this:

    1. In your indicator code, in the Initialize method, set BarsRequired to something. It defaults to 20 if you don't set it. This is the number of bars "required" for an indicator to stabilize.

    2. Or, in your chart, right click on the chart, select Properties. In the Data Series settings, there's a setting to "Show unstable period for indicators". Set this to True, and the BarsRequired setting will be suppressed, and all the data will be shown at the beginning of the plot.

    -Alex

    Comment


      #3
      Originally posted by anachronist View Post
      There are two ways to do this:

      1. In your indicator code, in the Initialize method, set BarsRequired to something. It defaults to 20 if you don't set it. This is the number of bars "required" for an indicator to stabilize.

      2. Or, in your chart, right click on the chart, select Properties. In the Data Series settings, there's a setting to "Show unstable period for indicators". Set this to True, and the BarsRequired setting will be suppressed, and all the data will be shown at the beginning of the plot.

      -Alex

      This works. Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Felix Reichert, 04-26-2024, 02:12 PM
      6 responses
      41 views
      0 likes
      Last Post Felix Reichert  
      Started by MrForgetful, Today, 01:28 AM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
      16 responses
      49 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by ETFVoyageur, Yesterday, 06:05 PM
      6 responses
      39 views
      0 likes
      Last Post ETFVoyageur  
      Started by rbeckmann05, Today, 02:35 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X