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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X