Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on calling 'OnBarUpdate' method for indicator

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

    Error on calling 'OnBarUpdate' method for indicator

    Hello, please help me, I wrote a simple code, the program is compiled it without errors but on the chart it is visible nothing, and in the log this error

    here is the code
    Last edited by Papercut110; 08-19-2016, 07:54 PM.

    #2
    Hello Papercut110,

    Thank you for your post.

    I see nothing wrong with the code. To fully test it I would need to know what LOG2 is and if you could provide the code or .cs file it would be helpful.

    Comment


      #3
      Here is LOG2
      Last edited by Papercut110; 08-19-2016, 07:54 PM.

      Comment


        #4
        PaperCut110,

        Your BarsArray call is to 2 when it should be 1 in the Minus indicator. For example:
        Code:
        Minu.Set((LOG2(1).Percent[0])-(LOG2(BarsArray[1], 1).Percent[0]));

        Comment


          #5
          thank you, as I looked, a stupid mistake

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          128 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          74 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          116 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          110 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          89 views
          0 likes
          Last Post CarlTrading  
          Working...
          X