Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Count of indicator occurances?

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

    Count of indicator occurances?

    Suppose I add an indicator for doji candles - is there a way to get a count of how many dojis were found (i.e. how many bars were flagged)?

    Thx.

    Brooks

    #2
    Brooks, if you add the CandleStickPattern indicator on the chart, the lower right side would display the pattern occurences found on the chart.

    Comment


      #3
      I was just using doji as an example - hadn't actually looked at the chart. I want to do this for my own indicators. So the generic answer is to create an integer variable to keep count, increment it in your logic and use DrawFixedText to display it on the chart. And the built-in CandleStickPattern is a nice example of this. Thanks Bertrand!

      Originally posted by NinjaTrader_Bertrand View Post
      Brooks, if you add the CandleStickPattern indicator on the chart, the lower right side would display the pattern occurences found on the chart.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      636 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X