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

Confused by output of onMarketData

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

    #16
    Hi Chris

    The documentation for OnMarketData states that it is "guaranteed to be in the correct sequence for every change in level one market data for the underlying instrument", so I would expect the ask/bid stream to perfectly sync with last update events. Is there possibly a problem with the data feed from Kinetick? Can you refer this to them?

    Also, I have used OnMarketDepth extensively before and the problem there is that OnMarketDepth doesn't provide last update events and you cannot rely on e.g. OnMarketDepth always being called before OnMarketData, as NinjaTrader is multi-threaded (also from the docs). In any case, I'm only interested in level one data, for continuous last, bid and ask events and volumes. It's looking very like this data is not reliable, which is disappointing.

    Thanks again for investigating this issue.

    Comment


      #17
      Hello Cilla,

      Thanks for the follow-up.

      I do see the help guide claims the OnMarketData method will be in sync. I will run a test in NInjaTrader 7 to see if the same thing happens there. It appears we will need to make a change to the help guide and/or report this as a bug.

      Thanks in advance for your patience.
      Chris L.NinjaTrader Customer Service

      Comment


        #18
        Hello Cilla,

        Thanks for your patience.

        A change to the help guide will be made to make it more clear that OnMarketData will give you every change in level one data that is given through your data provider.

        Please let me know if I can assist any further.

        Chris L.NinjaTrader Customer Service

        Comment


          #19
          Many thanks Chris, I understand now. I look forward to the change in the help guide.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jclose, Today, 09:37 PM
          0 responses
          6 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,414 views
          0 likes
          Last Post Traderontheroad  
          Started by firefoxforum12, Today, 08:53 PM
          0 responses
          11 views
          0 likes
          Last Post firefoxforum12  
          Started by stafe, Today, 08:34 PM
          0 responses
          11 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by sastrades, 01-31-2024, 10:19 PM
          11 responses
          169 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X