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 DanielTynera, Today, 01:14 AM
              0 responses
              2 views
              0 likes
              Last Post DanielTynera  
              Started by yertle, 04-18-2024, 08:38 AM
              9 responses
              40 views
              0 likes
              Last Post yertle
              by yertle
               
              Started by techgetgame, Yesterday, 11:42 PM
              0 responses
              12 views
              0 likes
              Last Post techgetgame  
              Started by sephichapdson, Yesterday, 11:36 PM
              0 responses
              2 views
              0 likes
              Last Post sephichapdson  
              Started by bortz, 11-06-2023, 08:04 AM
              47 responses
              1,615 views
              0 likes
              Last Post aligator  
              Working...
              X