![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
|
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 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
OnMarketData() shows level I. OnMarketDepth() shows level II. OnMarketData() will only print out what comes out for L1 data.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnMarketDepth() | SystemTrading | Strategy Development | 5 | 09-04-2008 08:35 AM |
| OnMarketDepth callback | CraigC | General Programming | 17 | 06-30-2008 11:34 PM |
| Bug in OnMarketDepth | maxima | Indicator Development | 2 | 05-05-2008 02:44 PM |
| OnMarketDepth details | ct | General Programming | 5 | 11-30-2007 06:01 AM |
| Play beep OnMarketDepth | MrBaffalo | Indicator Development | 4 | 11-19-2007 10:39 PM |