Bar Count Since Condition

Top  Previous  Next

Category: Advanced Indicator Set 2

Abbreviation: BarsSinceCond

 

Input parameters

Name

Setting

Default

Condition

Condition time series

Close

Period

Integer >= 0

5

 

Calculations

The Bar Count Since Condition indicator calculates the number of bars that have passed since Condition was true (non-zero) the last time in the most recent Period bars.  If the condition was not true in the window, the return value is 1.

If Period=0 then the indicator returns the number of bars passed since Condition was true. In this case, there is no moving window.