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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
35 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
12 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
18 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment