Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

barsago error

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

    barsago error

    I have a strtaegy that has(had) a variable called barsAgo, I renamed it bbarsAgo as I will explain shortly.

    for some reason, I get the following error in the LOG when I run this strategy. Note that I get NO compile errors.

    Error on calling 'OnBarUpdate' method for strategy 'AutoCOMASPers': ADX[barsAgo]: barsAgo must be greater/equal 0 but was -1

    Note: I do not refer or use the ADX indicator at all in this strategy. To try to resolve this issue, I have tried renaming my variable to bbarsAgo--just in the off chance of the ADX method was attempting to use my variable.


    In my strategy, I am assigning the value of 'bbarsago' from the MRO method--which can and does often result in a value of -1 (which is a valid value in this method)

    Is this a case of some other error causing this error? ANy help would be appreciated.
    Jim-Boulder
    NinjaTrader Ecosystem Vendor - Elephant Tracks

    #2
    Likely related to that thread: http://www.ninjatrader-support.com/v...ead.php?t=3170

    Comment

    Latest Posts

    Collapse

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