Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

count-bars

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

    count-bars

    Hello,

    I´d like to count how many bars have been plotted after a certain condition was filled. And I would like to show the "current" number above the bar. I don´t know how I could do this.

    Thanks for any help.

    Best regards
    Tony

    #2
    Hi tonynt,

    You can capture CurrentBar at the time of the condition, and compare this captured value to current bar to get the bars since your condition. This works very similar to the RemoveDraw thread you started:


    You can DrawText() for the difference between CurrentBar and the captured CurrentBar value from the condition.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X