Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OnBarUpdate() not firing for last bar of End of Day data

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

    OnBarUpdate() not firing for last bar of End of Day data

    While developing a custom indicator, I am noticing that the last bar of End of Day data does not cause OnBarUpdate() to fire. This causes the respective data series Open, High, etc to not reflect the last trading day's data.
    I found a similar thread from three years ago (referencing NT 6.5), that stated this problem arises because OnBarUpdate does not fire until at least one tick of the next bar comes through.
    How can I force an OnBarUpdate (or some other workaround) so that I can get Open, etc to reflect the last bar's data in End of Day data?

    -- I have tried setting CalculateOnBarClose to both true and false, and the last bar is still not appearing within these data series.
    -- I have tried this with Kinetick EOD and Yahoo datafeeds. Both do not show the last bar within data series.

    #2
    Hello,

    Thanks for the note and welcome to the NinjaTrader support forum.

    Thank for searching before posting as well!

    You would not be able to force this sorry.

    Your best move is to get away from the free connections and use for example the full version of kinetick so you are getting some live data. You can only run strategies live on live data unfortunately.



    Let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    30 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    943 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    9 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    5 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Working...
    X