Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Minimum Bars for Indicator Calculation

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

    Minimum Bars for Indicator Calculation

    Hi,

    Whenever I add an indicator to a Chart it only diplays it calculated in chart starting from bar 20. However, SMA of period lenght 3 should already exist since bar 2 (0,1,2). Is it being calculated but only displayed from bar 20 on or is there something I have to change in code to do it and display it ? I've already checked the native script for SMA indicator, but I couldn't find where the limitation for 21 bars minimum is...

    Thanks

    #2
    Hello agenor,

    Thanks for your post.

    What you are looking for is called "BarsRequired" which relates to the (display) plotting but not of the indicator calculation period. The BarsRequired default is 20. Here is a link to the help guide that discusses BarsRequired. http://www.ninjatrader.com/support/h...rsrequired.htm

    Please let me know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X