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 Mikey_, 03-23-2024, 05:59 PM
    3 responses
    49 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by f.saeidi, Today, 12:14 PM
    7 responses
    16 views
    0 likes
    Last Post f.saeidi  
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by philmg, Today, 12:55 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by TradeForge, 04-19-2024, 02:09 AM
    2 responses
    32 views
    0 likes
    Last Post TradeForge  
    Working...
    X