Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    382 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Working...
    X