Click here to Login
Email
Password
Remember me
Forgot my Password
Trading Software
Features
Trading objects
How-to
Blog
QuantShare Blog
Users Blog
Forum
Partnership
White Label
Search
0
AvgIf 1
Function - AVGIF
AVGIF
Average If
Technical
SYNTAX
AvgIf( ARRAY condition, ARRAY array, ARRAY period)
RETURNS
NUMERIC ARRAY
DESCRIPTION
Calculates, when condition is TRUE, the average of the ARRAY for the specified number of lookback periods (current bar is included) (When the condition is true)
ADDITIONAL INFO
EXAMPLE
AvgIf(perf(close) > 0, close, 10)