![]() |
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 |
|
Junior Member
Join Date: Oct 2011
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,420
Thanks: 252
Thanked 981 times in 963 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2011
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Bertrand.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Oct 2011
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service
Last edited by NinjaTrader_RyanM; 06-15-2012 at 12:23 PM.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Oct 2011
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
|
Ryan,
I got it to match the T&S now, but what does MarketDataType.Last mean? James |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 618
Thanks: 12
Thanked 24 times in 18 posts
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnMarketData | PDT123 | Indicator Development | 2 | 01-24-2012 07:22 AM |
| orders in OnMarketData continue to submit | Trader.Jon | Strategy Development | 4 | 03-28-2011 10:52 AM |
| OnMarketData | cicondo | Strategy Analyzer | 3 | 07-19-2010 11:30 AM |
| OnMarketData | rt-trader | Version 7 Beta General Questions & Bug Reports | 4 | 05-06-2010 11:06 AM |
| OnMarketData | SystemTrading | General Programming | 2 | 09-09-2008 04:51 PM |