Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CountIf alternative?

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

    CountIf alternative?

    Hi guys, im trying to count the amount of signals i get in one chart (conditions meet) but i was struggling to the CountIf method working properly till i saw this in the help manual:

    " This method will NOT work on multi-series strategies. "

    im using a 4h and 5 minutes series, Whats the alternative to CountIf to accomplish this?

    should i create a data series? a mock up example will tremendously help

    Thanks in advance!

    #2
    Hello kabott

    You can declare an integer, like signalFound and where the condition is true add a line signalFound++ ; To increment the value of the integer.

    For a reference, this is demonstrated in the indicator CandlestickPatterns on your NinjaTrader. Look for the integer patternFound.

    Please let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    324 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    250 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    180 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X