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 ZenCortexAuCost, Today, 04:24 AM
      0 responses
      3 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by ZenCortexAuCost, Today, 04:22 AM
      0 responses
      0 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by SantoshXX, Today, 03:09 AM
      0 responses
      13 views
      0 likes
      Last Post SantoshXX  
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      42 views
      0 likes
      Last Post yertle
      by yertle
       
      Working...
      X