Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sub minute calls to OnBarUpdate()

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

    Sub minute calls to OnBarUpdate()

    I have uploaded lots of tick data (from disktrading.com) into my database. When I run the following on "1 second bars" the output indicates that OnBarUpdate() is only called every minute rather than every second.

    How can I make NT call OnBarUpdate() every second?

    Thanks,
    Matthew.

    Code:
    protected override void Initialize()
    {
           CalculateOnBarClose = true;
    }
    protected override void OnBarUpdate()
    {
           Print(Time[0]);
    }
    04/01/2008 21:40:00
    04/01/2008 21:41:00
    04/01/2008 21:42:00
    04/01/2008 21:43:00
    04/01/2008 21:44:00
    04/01/2008 21:45:00
    04/01/2008 21:46:00
    04/01/2008 21:47:00
    04/01/2008 21:48:00
    04/01/2008 21:49:00
    04/01/2008 21:50:00
    04/01/2008 21:51:00
    04/01/2008 21:52:00
    04/01/2008 21:53:00
    04/01/2008 21:54:00
    04/01/2008 21:55:00
    04/01/2008 21:56:00
    04/01/2008 21:57:00
    04/01/2008 21:58:00

    #2
    Solved.

    Okay, the disktrading data I have only marks its tick data to an accuracy of 1 minute. WTF!? What the hell is the point in that? It is only useful for 1 minute bars.

    Anyone know where to get cheap higher frequency data?
    Attached Files

    Comment


      #3
      Okay, panic over! The GAIN demo connection has loads of tick data on it with second time stamps. With the new historical data manager in NT7 it is easy to see what data you have and what you need. Excellent!

      Thanks,
      Matthew.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      29 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      227 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      309 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X