Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnMarketData vs OnMarketDepth...

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

    OnMarketData vs OnMarketDepth...

    Ok, help me to understand. I checked out your SampleMarketDepth code, and it uses OnMarketDepth() to display ladder, I checked out the ShowBidAndAsk indicator, which uses OnMarketData(). OnMarketData() shows me "lastPrice" and vol. OnMarketDepth() only shows bid and ask and vol. (according to data vendor, correct?) I'm using ZenFire/Amp. I wrote a script that shows me the "last price and vol" and I am running the 'SampleMarketDepth' ladder, AND I have the T&S window open. What I see is that the MarketDepth volume coincides with T&S volume and MarketData cannot keep up with the amount of sales that's scrolling by. For example, if T&S spits out 3 rows of contracts traded at ES 1207.75 with vols
    like: 8, 5 and 10, the vol from MarketData() will only show the 10 contracts, and not all three. Or is it going sooo fast that I'm not able to see it?

    #2
    OnMarketData() shows level I. OnMarketDepth() shows level II. OnMarketData() will only print out what comes out for L1 data.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 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