and also since start of session
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Count # of Bars since Midnight
Collapse
X
-
Count # of Bars since Midnight
How could I count the # of bars since midnight on a chart?
and also since start of sessionTags: None
-
Hello NinjaCustomer,
Thank you for your post.
You would use GetBar(): http://www.ninjatrader.com/support/h...nt7/getbar.htmOriginally posted by NinjaCustomer View PostHow could I count the # of bars since midnight on a chart?
As inCode:Bars.GetBar(new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 0, 0, 0))
Use BarsSinceSession: http://www.ninjatrader.com/support/h...ncesession.htmOriginally posted by NinjaCustomer View Postand also since start of session
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
563 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
329 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
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment