Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Time Spent On Range Bars
Collapse
X
-
Time Spent On Range Bars
I am trying to find an indicator that tells me how many seconds price stayed in a range bar. I found an indicator for NT 7 whose name is "TimeHistogram", but I can not find anything similar for NT 8. Can anyone point me in the right direction? What methods should I use if I have to write code for a new indicator?Tags: None
-
Hello goodknight777,
Thank you for the post.
I took a look on the user app share however I did not see the specific item you mentioned and was unable to locate another item which was intended for tick based series.
If you wanted to make something which gathers the times for range bars you would need to use tick replay if you wanted this to work historically. You could otherwise write the indicator to use IsFirstTickOfBar to determine when a new bar starts. At that point you could collect the Time[0]. At the next IsFirstTickOfBar you could compare the Time[1] with the saved time to get a difference or total time. Then you would repeat that for each bar.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
580 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
336 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment