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