Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

where my last OnBarUpdate events go?

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

    where my last OnBarUpdate events go?

    Dear NinjaTraders,

    I am developing a multi-instrument strategy, running once per day, after the markets closed, using end-of-day data.

    It is now 7:45pm Pacific Time on October 2nd, so the markets are closed for several hours. The last time I see an OnBarUpdate() is either September 30, or October 1st, depending on two issues:

    (1) Looking at my historical data, I see that I still did not receive end of day data for October 2nd through Kinetick. When does Kinetick provide the data? Is there any way to speed that up?

    (2) Somehow CalculateOnBarClose plays into this. If I set it to true, the last OnBarUpdate I see is September 30. If I set it to false, the last OnBarUpdate I see is October 1st. Why? Is this somehow related to session templates? What do I need to do to fix this?


    Thank you,
    best regards, Felix

    #2
    Hi Felix, you operate here in an event based framework - the bars would not be considered closed until the open tick of the bar basically has been seen. For Kinetick's free EOD feed I would expect the bars to update around 4:15 PM EST, so if you reload your chart after that time you should see the new daily bar.

    Correct CalculateOnBarClose will play a major role here which OBU you get, for it being true the last completed bar at your eval time was the Sep 30th, the Oct 1 was still in process and thus only called with that setting being false.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    55 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X