Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time Spent On Range Bars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    92 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    48 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    106 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X