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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X