MacdAvg | Mastock Help

Short Name: macdAvg

Definition: Return an array representing the average line of the MACD indicator

Usage: macdAvg(12,26,9)

Objective:
  • Retrieve the MACD Average values
  • Returns an array of values.

Note:
  • Usual values are 12, 26 and 9

Examples:
  • macdAvg(12,26,9)
  • Signal MACD:
  • test = macd(12,26,9) > macdAvg(12,26,9)
  • indic = choose(test,100,0)
  • notifyResult(indic)