![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |