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 hazylizard, Today, 08:38 AM
    2 responses
    8 views
    0 likes
    Last Post hazylizard  
    Started by geddyisodin, Today, 05:20 AM
    2 responses
    18 views
    0 likes
    Last Post geddyisodin  
    Started by Max238, Today, 01:28 AM
    5 responses
    47 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by giulyko00, Yesterday, 12:03 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by habeebft, Today, 07:27 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X