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 pvincent, 06-23-2022, 12:53 PM
              14 responses
              238 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              9 responses
              383 views
              1 like
              Last Post Gavini
              by Gavini
               
              Started by oviejo, Today, 12:28 AM
              0 responses
              1 view
              0 likes
              Last Post oviejo
              by oviejo
               
              Started by pechtri, 06-22-2023, 02:31 AM
              10 responses
              125 views
              0 likes
              Last Post Leeroy_Jenkins  
              Started by judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              59 views
              0 likes
              Last Post DynamicTest  
              Working...
              X