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 fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,404 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          95 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          7 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          159 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          8 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X