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

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
    BertrandNinjaTrader Customer Service

    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 mattbsea, Today, 05:44 PM
              0 responses
              3 views
              0 likes
              Last Post mattbsea  
              Started by RideMe, 04-07-2024, 04:54 PM
              6 responses
              31 views
              0 likes
              Last Post RideMe
              by RideMe
               
              Started by tkaboris, Today, 05:13 PM
              0 responses
              2 views
              0 likes
              Last Post tkaboris  
              Started by GussJ, 03-04-2020, 03:11 PM
              16 responses
              3,282 views
              0 likes
              Last Post Leafcutter  
              Started by WHICKED, Today, 12:45 PM
              2 responses
              20 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Working...
              X