Moving averages, summation
|SYNTAX||SumSince( condition, array )|
|FUNCTION|| The function calculates running sum of array elements since condition was true. It works like:
but much faster.
|SEE ALSO||Cum() function , Sum() function , BarsSince() function , ValueWhen() function|
The SumSince function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.