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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
550 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment