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 KonAdams, Today, 10:53 PM
    0 responses
    1 view
    0 likes
    Last Post KonAdams  
    Started by JGriff5646, Today, 10:02 PM
    0 responses
    10 views
    0 likes
    Last Post JGriff5646  
    Started by AdamDJ8, Today, 09:18 PM
    0 responses
    5 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Started by knowmad, Today, 03:52 AM
    2 responses
    33 views
    0 likes
    Last Post knowmad
    by knowmad
     
    Started by ETFVoyageur, Today, 07:05 PM
    0 responses
    11 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X