BarsSince
- bars since

Trading system toolbox


SYNTAX BarsSince( ARRAY )
RETURNS ARRAY
FUNCTION Calculates the number of bars (time periods) that have passed since ARRAY was true (or 1)
EXAMPLE barssince( macd() < 0 )
SEE ALSO BarsSinceCompare() function

References:

The BarsSince function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.