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 10-25-2010, 08:29 AM   #1
Alfred
Senior Member
 
Join Date: Nov 2004
Location: Northern California
Posts: 978
Thanks: 14
Thanked 36 times in 30 posts
Default Question BuySellStrength Indicator...

In the Indicators area...looking at the BuySellStrength indicator... looking at the Ninjascript....the bidvol and askvol therein...do those represent the actual trade volume at each tick ?

Thanks
Alfred is offline  
Reply With Quote
Old 10-25-2010, 08:39 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Alfred,

int bidvol = GetCurrentBidVolume();
int askvol = GetCurrentAskVolume();

This represents the current volume for the best bid and best ask.

http://www.ninjatrader.com/support/h...tbidvolume.htm
http://www.ninjatrader.com/support/h...taskvolume.htm
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-25-2010, 08:45 AM   #3
Alfred
Senior Member
 
Join Date: Nov 2004
Location: Northern California
Posts: 978
Thanks: 14
Thanked 36 times in 30 posts
Default

In an indicator...how does one get the actual buy & sell trade volume as shown in the time and sales window ??

Thanks
Last edited by Alfred; 12-23-2010 at 07:49 AM.
Alfred is offline  
Reply With Quote
Old 10-25-2010, 09:07 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Alfred,

You can work with OnMarketData() to capture the stream of level I data.
http://www.ninjatrader.com/support/h...marketdata.htm
NinjaTrader_RyanM 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
Question about indicator refering other indicator blar58 Version 7 Beta General Questions & Bug Reports 3 09-17-2010 01:13 PM
Indicator question pinballmad Charting 8 08-18-2010 09:09 AM
Basic question: Indicator on an Indicator cgeorgan General Programming 3 06-21-2010 02:35 PM
indicator question inventor1949 Indicator Development 3 09-25-2009 06:08 AM
Indicator question j4068 Charting 4 04-22-2009 08:11 PM


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