Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpdate error

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

    OnBarUpdate error

    Hello,

    I received too frequently the error:
    "Error on calling 'OnBarUpdate' method for indicator 'SUM' on bar 266: barsAgo needed to be between 0 and 255 but was 266"

    I read in your forum that this could be solved setting "MaximumBarsLookBack = MaximumBarsLookBack.Infinite;" in Initialize()

    but the problem still appears sometimes and not in all strategies. What could be the problem?

    #2
    Hello guillembm,

    Please send us a copy of the strategy you are using so that we may review the issue. Send to PlatformSupport[at]Ninjatrader[dot]com atten Paul and the title of this thread in the subject line. Also, advise the instrument and timeframe in use and any other conditions so we can replicate.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    75 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    101 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    289 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X