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

Question about Milliseconds resolution from IQFeed

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

    Question about Milliseconds resolution from IQFeed

    Hello Support
    I have one question : As IQFeed now sends the millisecond - timestamp , how do I programmatically have access to the timestamp of the exchange ? Is there an example of any interface ,where to see this ? Or is there only access to the computertime (with this date,time,now)?
    kind regs
    Jojo

    #2
    Hello Jojo,

    I believe you should be able to get this inside of OnMarketData(). You may use the MarketDataEventArgs to and the Time aspect of this should get you what you would like.



    Note that by default the DateTime objects are only going to get up to the second so you if wanted to get a millisecond granularity you would have to modify the DateTime display structure.

    Represents an instant in time, typically expressed as a date and time of day.
    JCNinjaTrader Customer Service

    Comment


      #3
      Unfortunately it seeemes that OnMarketData does not support/deliver milliseconds from IQ .If I use e.Time.ToString("HH:mm:ss.fff") it gives only 16:30:28.000 ............
      Does NT support millisecond timestamp from IQ or not ??
      That's what the original question was about.
      regs

      Comment


        #4
        The NinjaTrader time methods (Time[0], e.Time) will only work down to the second. However you can substitute DateTime.Now to capture the current computer time which can be used down to the interval you wish.
        MatthewNinjaTrader Product Management

        Comment


          #5
          Ok I feared that - so wait till NT 8.
          Thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by trilliantrader, 04-18-2024, 08:16 AM
          4 responses
          18 views
          0 likes
          Last Post trilliantrader  
          Started by mgco4you, Today, 09:46 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by wzgy0920, Today, 09:53 PM
          0 responses
          9 views
          0 likes
          Last Post wzgy0920  
          Started by Rapine Heihei, Today, 08:19 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by Rapine Heihei, Today, 08:25 PM
          0 responses
          10 views
          0 likes
          Last Post Rapine Heihei  
          Working...
          X