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, 05-11-2026, 05:56 AM
          0 responses
          27 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          183 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          335 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          260 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X