Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders and OnMarketData

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

    Orders and OnMarketData

    Does OnMarketData get called for each Order placed in a market?

    Are the Ask / Bid Values in OnMarketData the same as the values in the Time and Sales window?

    James Donald

    #2
    Correct James, OnMarketData() and the Time and Sales windows access the same Level 1 data stream.

    OnMarketData() will get called for each of those event args -

    MarketDataType.Ask

    MarketDataType.Bid

    MarketDataType.DailyHigh

    MarketDataType.DailyLow

    MarketDataType.DailyVolume

    MarketDataType.Last

    MarketDataType.LastClose (prior session close)

    MarketDataType.Opening

    Comment


      #3
      Thanks Bertrand.

      Comment


        #4
        T&S Match

        I am having problems getting the data from OnMarketData to match the T&S window.

        I set up a threshold to only show me Asks / Bids larger than a threshold. I set the T&S size filter to the same threshold. I seem to get more Ask / Bids from my indicator than shown on the T&S.

        Does the T&S apply any additional filtering on the Ask / Bid Volume?

        James Donald

        Comment


          #5
          James,

          The time and sales window does not display bid / ask volume. It's transactional volume which would be volume during Last updates if comparing with OnMarketData() stream.
          Last edited by NinjaTrader_RyanM1; 06-15-2012, 12:23 PM.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            MarketDataType.Last

            Ryan,

            I got it to match the T&S now, but what does MarketDataType.Last mean?

            James

            Comment


              #7
              Hi James,

              Bid and Ask refer to updates to the number of limit order contracts available at the current Bid and Ask prices.

              "Last" refers to contracts traded.

              RJay
              RJay
              NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              161 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Started by CaptainJack, 04-24-2026, 11:07 PM
              0 responses
              309 views
              0 likes
              Last Post CaptainJack  
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              245 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              349 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              179 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Working...
              X