Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator 'MyDrawRegionTest': Error on calling 'OnBarUpdate' method on bar 0: The cal

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

    #16
    I'm entered that line in the OnBarUpdate and issued a Print after it, no error.

    I put BarHeight as a private variable and made the assignment in OnBarUpdate - no error.

    Are you sure it's this line? Anything else special going on?


    BarHeight=4
    BarHeight=4
    BarHeight=4

    Comment


      #17
      Originally posted by sledge View Post
      I'm entered that line in the OnBarUpdate and issued a Print after it, no error.

      I put BarHeight as a private variable and made the assignment in OnBarUpdate - no error.

      Are you sure it's this line? Anything else special going on?


      BarHeight=4
      BarHeight=4
      BarHeight=4

      I think its the ".ToString" that is causing the error message in this case.

      .
      RJay
      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

      Comment


        #18
        I cannot reproduce that error either, even with the ToString() method. Where are you attempting to access this value?
        MatthewNinjaTrader Product Management

        Comment


          #19
          Hmm, what Bass are you testing this on? I tried all the default BarsTypes and do not get any error-> I simply get the BarsPeriod printed to the output window.
          MatthewNinjaTrader Product Management

          Comment


            #20
            Hi,
            I created a new indicator doing the same task as the old one and the problem went away.

            Deleted the old one. Problem solved.

            Thanks for your time.

            RJay
            RJay
            NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

            Comment


              #21
              Glad to hear it's working, thanks for the update.
              MatthewNinjaTrader Product Management

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, Yesterday, 10:06 AM
              0 responses
              18 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              17 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              14 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              9 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              38 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X