CountIf()
CountIf()
Definition
Counts the number of instances the test condition occurs over the look-back period expressed in bars.
This method does NOT work on multi-series strategies and indicators.
Method Return Value
An int value representing the number of occurrences found.
Syntax
CountIf(Func\<bool\> condition, int period)
Parameters
Tip: The syntax for the “condition” parameter uses lambda expression syntax.

