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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      55 views
      0 likes
      Last Post CarlTrading  
      Working...
      X