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 04-28-2008, 09:36 AM   #1
T4M
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 34
Thanks: 0
Thanked 0 times in 0 posts
Default volume of the current bar ?

Would it be possible to see the volume of current last bar while developping ?
T4M is offline  
Reply With Quote
Old 04-28-2008, 09:44 AM   #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

What do you mean by "current last bar" ?

Volume[0] is the volume of the current bar
NinjaTrader_Ray is offline  
Reply With Quote
Old 04-28-2008, 02:27 PM   #3
mgbloomfield
Senior Member
 
Join Date: Dec 2006
Location: Seattle, Washington, USA
Posts: 150
Thanks: 0
Thanked 0 times in 0 posts
Default

As NinjaTrader_Ray has indicated:

Volume[0] is the volume of the current bar.

Likewise:

Volume[1] is the volume of the previous bar.

Volume[2] is the volume 2 bars ago.
mgbloomfield 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
Data Not Current Jim-Boulder ATM Strategies (Discretionary Trading) 1 01-16-2008 09:08 AM
multicolor volume bars and volume bar projections... possible or not? Pr0crast Charting 8 12-25-2007 06:36 PM
Current bar volume Trading618 Charting 2 12-06-2007 11:19 AM
CrossAbove for current bar. SuzyG Strategy Development 1 12-28-2006 03:18 AM


All times are GMT -6. The time now is 12:51 PM.