Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ticks in a historical bar.
Collapse
X
-
Hi higler,
I understand. You are not looking for the number of ticks for the size of that bar, you are wanting the volume from that bar.
Print(Volume[0]);
The Volume dataseries has the volume for each bar.
Below is a link to the help guide on Volume.
http://ninjatrader.com/support/helpG...t7/volume2.htmChelsea B.NinjaTrader Customer Service
Comment
-
I think that I am not being clear. From the NT help, "A Tick bar is based on a specific number of trades (ticks)." I am using a minute bar but want to know how many ticks (trades) occurred in a historical minute bar. I am trying to get something equivalent to Bars.TickCount that can be applied to a historical bar instead of just the current bar. The number or trades (ticks) in a bar is usually different than volume because one trade (tick) can be of more than one contract or share.
Comment
-
Hello higler,
The volume represents the number of contracts that were traded during that bar.
Try adding the VOL indicator to a chart. Is this not the information you are looking for?
If you want a tick counter instead of using the volume (number of contracts traded) for a time based bar, you would need to add a secondary series to your script of 1 tick and then count each tick.
A int variable would be used as a counter. This counter would increment when BarsInProgress is equal to 1 (so this only increments on the tick series). After a primary bar closes, save this value from the counter to a custom data series synced with the primary bar series and then reset the counter.
Add - http://ninjatrader.com/support/helpGuides/nt7/add3.htm
BarsInProgress - http://ninjatrader.com/support/helpG...inprogress.htm
DataSeries - http://ninjatrader.com/support/helpG...ries_class.htmChelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
142 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
81 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
125 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
120 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
98 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment