Category
MultiBar Functions
Description
Sum of values since a condition was last true, or until it becomes true
Syntax
SumSince(condition, expression, nth {1})
Parameters
condition  formula to evaluate for each bar until true (nonzero)
expression  formula to evaluate for each nontrue condition bar and add to a running sum
nth  which instance of condition to use (optional)
Notes
For each bar until condition is true, expression is evaluated and added to the sum.
The sum does not include the value of expression for the bar where the condition becomes true.
If condition is immediately true, the result is 0.
If nth is positive, condition is evaluated for the most recent bar, then continues back in time until the nth nonzero value is found.
If nth is negative, condition will be evaluated for the most recent bar, then continues forward in time until the abs(nth) nonzero value is found.
If nth is not specified, the default is 1.
