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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          557 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X