Script: mcgAvg | Mastock Help



Short Name: mcgAvg

Definition: Returns a mobile McGinley average

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

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

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