MACD Instruction
 

Short Name: MACD

Definition: Return an array representing the main MACD line

Usage: MACD(12,26,9)

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

Note:
  • Usual values are 12, 26 and 9

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