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 Mindset, Today, 06:46 AM
              0 responses
              13 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, Yesterday, 05:21 PM
              0 responses
              19 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              16 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              82 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              51 views
              0 likes
              Last Post PaulMohn  
              Working...
              X