Function - AVGIF
SYNTAX |
AvgIf( ARRAY condition, ARRAY array) |
RETURNS |
NUMERIC ARRAY |
DESCRIPTION |
Calculates, when condition is TRUE, the average of the ARRAY for all the lookback periods (current bar is included) |
ADDITIONAL INFO |
|
EXAMPLE |
AvgIf(perf(close) > 0, close) |
| |