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 kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      30 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      30 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      27 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      141 views
      0 likes
      Last Post SalmaTrader  
      Working...
      X