Script: ExpAvg | Mastock Help



Short Name: ExpAvg

Definition: Returns a mobile exponential average

Usage: expAvg(20) or expAvg(RSI(14),20)

Objective:
  • Returns a mobile exponential average of close values if only one parameter is present
  • Returns a mobile exponential 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
  • expAvg(20) and expAvg(close,20) returns the same array of values

Examples:
  • expAvg(20)
  • expAvg(rsi(14),20)
  • expAvg(dummyArray,20)