NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 09-17-2008, 12:33 PM   #1
funk101
Senior Member
 
Join Date: Jan 2006
Location: Margate, Florida, USA
Posts: 426
Thanks: 0
Thanked 2 times in 2 posts
Send a message via AIM to funk101
Default time and sales volume vs. e.Volume

if (e.MarketDataType == MarketDataType.Ask)
{
if (e.Volume >= numContracts)
{
MyLine(e.Price, 0);
Print("Ask = " + e.Price + " @ " + e.Volume);
}
}


how come e.Volume is different than what appears in T&S window?

AND btw, how come MarketDataType.Last never shows up?
funk101 is offline  
Reply With Quote
Old 09-17-2008, 12:37 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

e.Volume does match T&S window. You need to match them with the correct ask/bid from the T&S. It is difficult to keep track and match up, but it does match up.

MarketDataType.Last shows up when it is given to us by your data provider's API. If they do not fire off such an event we do not "fake" one for you.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bid/Ask Volume combined with Hist Volume monpere NinjaScript File Sharing Discussion 12 10-04-2011 02:25 PM
Change volume bar color based on price and volume range TiP2012 Indicator Development 5 05-26-2008 08:09 AM
multicolor volume bars and volume bar projections... possible or not? Pr0crast Charting 8 12-25-2007 06:36 PM
Time of Day Average Volume ClayB1 Indicator Development 5 06-26-2007 07:00 AM
Volume Average vs. Time intervals sknudsen Miscellaneous Support 3 05-21-2007 05:24 PM


All times are GMT -6. The time now is 04:58 PM.