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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    70 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X