NinjaTrader Support Forum  

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 08-21-2012, 03:27 PM   #1
lsubeano
Junior Member
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Tick volume

Hi there. Is anyone one aware of an indicator that measures the tick volume. Not a tick chart, but a volume of ticks indicator.

Regards!
lsubeano is offline  
Reply With Quote
Old 08-21-2012, 03:41 PM   #2
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

@Vol plots the volume of each bar (comprised of ticks)

can you elaborate on what you're trying to accomplish?

cheers,
-e
e-man is offline  
Reply With Quote
The following user says thank you to e-man for this post:
Old 08-21-2012, 03:49 PM   #3
NinjaTrader_JC
NinjaTrader Customer Service
 
NinjaTrader_JC's Avatar
 
Join Date: Mar 2012
Location: Denver, CO
Posts: 1,183
Thanks: 130
Thanked 180 times in 179 posts
Default

Hello Isubeano,

Welcome to the NinjaTrader Support Forums!

I believe what you are looking for is a indicator that displays the number of ticks in a bar. To my knowledge I do not know of an indicator that does that, but there are a few that you could try or use as references.

The following link is to an indicator that displays the real-time level II tick volume at specific prices.
http://www.ninjatrader.com/support/f...d=4&linkid=336

This next one displays the time, tick count, volume, and many other items on the chart.
http://www.ninjatrader.com/support/f...d=1&linkid=320

Let us know if we can be of further assistance.
NinjaTrader_JC is offline  
Reply With Quote
Old 08-21-2012, 03:53 PM   #4
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

one more link to add to JC's list:

if you're looking for the prints/ticks/orders per bar, use Bars.TickCount:
http://www.ninjatrader.com/support/h...?tickcount.htm

cheers,
-e
e-man is offline  
Reply With Quote
Old 08-22-2012, 04:34 AM   #5
lsubeano
Junior Member
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

E-man,

Yes, what I'm looking for is a way to measure the number of trades per bar.

ie. If I have a 1min chart up...to be able to see for each 1min bar the number of trades that occurred during that 1min interval....not the volume of contracts, but number of trades.

thank you JC for those links....
lsubeano is offline  
Reply With Quote
Old 08-23-2012, 05:47 AM   #6
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

right-on, i think Bars.TickCount is what you're after then.

cheers,
-e
e-man is offline  
Reply With Quote
Old 08-24-2012, 03:47 AM   #7
lsubeano
Junior Member
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

thanks eman,

It appears that will not work unless there's a tweak I'm unaware of. It
seems it counts only using tick charts
lsubeano is offline  
Reply With Quote
Old 08-24-2012, 07:44 AM   #8
NinjaTrader_JC
NinjaTrader Customer Service
 
NinjaTrader_JC's Avatar
 
Join Date: Mar 2012
Location: Denver, CO
Posts: 1,183
Thanks: 130
Thanked 180 times in 179 posts
Default

Hello Isubeano,

You would want to use CalculateOnBarClose (COBC) set to false to be able to get a the Bars.TickCount to be able to get the TickCount of a bar. Note that the, COBC can vastly effect how a indicators/strategy functions. If CalculateOnBarClose is true, then the strategy/indicator will be calculated at the close of each bar. If your strategy/indicator is set to COBC is false, then it will be calculated on each tick of data. See the following link for more info on COBC.

http://www.ninjatrader.com/support/h...onbarclose.htm

Let us know if we can be of further assistance.
NinjaTrader_JC is offline  
Reply With Quote
Old 08-24-2012, 07:55 AM   #9
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

interesting, b/c this page makes no mention of the COBC requirement:
http://www.ninjatrader.com/support/h...?tickcount.htm

found this thread that has a bit more info (incl a mention of a future consideration for development team):
http://www.ninjatrader.com/support/f...ad.php?t=49902

bottom line is this is a real-time property, not an historical property like volume.

cheers,
-e
e-man is offline  
Reply With Quote
Old 11-07-2012, 05:50 PM   #10
HiTrade1208
Junior Member
 
Join Date: Oct 2012
Posts: 11
Thanks: 7
Thanked 0 times in 0 posts
Default

Hi Guys

Is there an Indicator in NT7 that will plot the Volume of Ticks in a bar? This is the closest thread I could find.
I have little programming experience so if I need to do that I would appreciate all the advice or instruction that I can get.

Thanks
HiTrade1208 is offline  
Reply With Quote
Old 11-08-2012, 04:56 AM   #11
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello HiTrade1208,
Are you referring to volume profile?

If so then NinjaTrader comes with a volume profile indicator. You can apply it on the chart by following the below steps:
  • Right click on the chart,
  • In the context menu click on Indicators
  • Select "VolumeProfile" and click on the New button
Please note it is a realtime only indicator.

Besides this you can also use the various member submitted indicators based on volume/market profile. You can download a few from the below linksBesides the free indicator few of our 3rd party partners provides a comprehensive package on volume/market profile. You can refer then from their websites
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 02-05-2013, 09:05 PM   #12
tornadoatc
Junior Member
 
Join Date: Aug 2008
Posts: 16
Thanks: 6
Thanked 0 times in 0 posts
Default

The original poster of this thread was asking how to get a tick count for each bar to use in an indicator calculation.

For instance, in another strategy development platform (not to be mentioned) I was able to write an indicator that calculated On Balance Volume where the "volume" (used for calculation) was either the trade volume or number of ticks. Number of Ticks would be used in calculation when BarType were "Volume Bars".

The system @OBV calculates only with Trade Volume based on following:
Code:
		        if (Close[0] > Close[1])
					Value.Set(Value[1]+ Volume[0]);
				else if (Close[0]  < Close[1])
					Value.Set(Value[1] - Volume[0]);
				else
					Value.Set(Value[1]);
I would like to calculate something like:
Code:
             if (BarsPeriod.BasePeriodType == PeriodType.Volume)
                        {
				if (Close[0] > Close[1])
					Value.Set(Value[1]+ Bars.TickCount);
				else if (Close[0]  < Close[1])
					Value.Set(Value[1] - Bars.TickCount);
				else
					Value.Set(Value[1]);
                          }
Essentially calculating OBV based on Tick Count of each Bar.

I have tried this with COBC = false as suggested but the indicator is plotting the same value as OBV() .

Using a Print() statement on CurrentBar ==1 the BarsPeriod.BasePeriodType evaluates to "Minute". Even though my chart is a 10000 vol ES chart.

As for the dataprovider I am using an External Tradestation Connection with the NTExternalFeed Strategy on a Delayed 10000 Volume ES Chart. The connection seems to be working fine. NT 10000 Vol chart gets updated when TS Chart is updated.
Last edited by tornadoatc; 02-06-2013 at 05:41 AM.
tornadoatc 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
Calculate up tick volume freewind Automated Trading 1 09-07-2010 03:21 PM
tick volume goes low deanz Version 7 Beta General Questions & Bug Reports 8 07-01-2010 04:19 AM
Tick volume indicator joker23 Indicator Development 1 02-10-2010 06:10 AM
Tick volume indicator Mindset Indicator Development 1 08-28-2009 07:25 AM
Tick Volume NinjaTrader_Josh Indicator Development 4 07-27-2007 01:39 AM


All times are GMT -6. The time now is 07:25 PM.