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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      174 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      329 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      356 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      183 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X