Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator for last bar not drawing (OnBarUpdate not called)

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

    Indicator for last bar not drawing (OnBarUpdate not called)

    I read this thread:


    From there, it seems the last indicator bar not being drawn is expected until the next bar has started. In my case, I'm using end-of-day historical data (non-realtime), so it seems the last day in my historical data will never get an OnBarUpdate event called, since I don't know the next close until the end of the [next] day. Is there a some kind of workaround to get this calculation made and the indicator for today's bar drawn, because I need it to make a trade at that time rather than waiting until the next close? Setting "CalculateOnBarClose = false;" doesn't work for non-realtime historical data, according to my testing and the docs.

    #2
    There is no workaround at this time unfortunately.
    RayNinjaTrader Customer Service

    Comment


      #3
      I see this is an old post, but was there ever a resolution to it? I was interested in scanning the end of day data to look for signals on the daily charts after hours for orders going into the next day.

      This allows for backtesting, but not actual present day trading on the daily charts.

      Comment


        #4
        Hello neilgalloway,

        Thank you for your post.

        This is resolved in NinjaTrader 8 where you can set the Calculate option to OnEachTick or OnPriceChange and see the last bar on the chart call OnBarUpdate even if it is a historical bar and/or you are using an End Of Day feed.

        Below, you will find links to some FREE resources to help you more about NinjaTrader 8.
        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        152 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        305 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        244 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        345 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        176 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X