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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              593 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              556 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              554 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X