NinjaTrader Support Forum  
X

Attention!

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


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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-26-2007, 02:02 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default Tick Volume

In real-time using Volume[0] returns me the current volume of the current bar. Is there any variable I can use to get the volume of the latest tick? What I am looking for is the volume shown in the T&S window for each incoming tick.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-26-2007, 02:14 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

In upcoming NT 6.5 we will support coding against OnMarketData() which will give you events for all market data updates including bid/ask data and volume.

For now, you have to self calculate. For reference sample on how to do this check the code in the BuySellVolume type indicators.
NinjaTrader_Ray is offline  
Reply With Quote
Old 07-26-2007, 03:02 PM   #3
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Thanks Ray. I can't wait for all the new and juicy things to come in NT6.5.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-27-2007, 01:34 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Will the OnMarketData() include timestamps on a tick basis or is that already available somewhere? Time[0] seems to only work on a bar basis.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-27-2007, 01:39 AM   #5
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

- OnMarketData will hold timestamp of the actual tick coming in
- Time[0] still will be timestamp of the current bar
NinjaTrader_Dierk 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
Catch the end of a minute bar on a tick by tick OnBarUpdate event Fabrice Automated Trading 5 07-06-2007 12:28 PM
Catch the end of a minute bar on a tick by tick OnBarUpdate event Fabrice Automated Trading 1 07-06-2007 06:53 AM
Volume/TICK data not updating with latest version Greg1 Charting 2 05-21-2007 05:44 AM
Pivot points are different when using volume/tick charts Greg1 Indicator Development 8 05-21-2007 05:43 AM
NT6 tick/volume counter suggestion LG Suggestions And Feedback 1 11-28-2006 09:05 AM


All times are GMT -6. The time now is 02:26 AM.