Short Name: Avg
Definition: Returns a mobile simple average
Usage: avg(20) or avg(RSI(14),20)
Objective:
- Returns a mobile simple average of close values if only one parameter is present
- Returns a mobile simple average of an array if the first parameter is an array
- Returns an array of values.
Note:
- If only one parameter is present, and it is numeric, returns an array representing the mobile average of close values
- If two parameters are present, returns a mobile average of the array values
- avg(20) and avg(close,20) returns the same array of values
Examples:
- avg(20)
- avg(rsi(14),20)
- avg(dummyArray,20)