BarsSince
|
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 |
The BarsSince function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.