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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X