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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          29 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          17 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          9 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          15 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          18 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X