Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug in daily graphs?

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

    Bug in daily graphs?

    Hello,
    a very simple scenario to show a possible bug related to daily graphs:

    1) I created a new daily graph for AAPL (data from yahoo)
    2) today is May 13th, and the last bar shown on graph is May 12th, which is correct
    3) I added an indicator (e.g. SMA(20)): the SMA is available up to May 11th. Why is it not available for May 12th?

    The same happens for other indicators (ATR, etc.).

    Also, I created an indicator of mine, and I could verify that OnBarUpdate() is called for each day up to May 11th, but not for May 12th, which is probably what is happening for the predefined indicators.

    Is it a bug, or am I missing something?



    Regards,

    Paolo

    #2
    Hi Paolo, expected since per default the CalculateOnBarClose setting is 'true' when you add the indicators, please test with this set to false.

    Comment


      #3
      Ok, that fixed the issue.
      I already tried to set it to false in the Initialize() method of my indicator, but I did not realize that the indicator settings would override the value.

      Thanks a lot,

      Paolo

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      602 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X