Script: Addition | Mastock Help



Short Name: +

Definition: Represent an addition operation

Usage: 1 + 2 or high + low

Objective:
  • Execute an addition of values or arrays
  • Returns a scalar value or an array of values.

Note:
  • Return value depends on the operands. If one of the operand is an array, then returns an array

Examples:
  • 1 + 2 returns 3
  • high + low returns an array where each value is the addition of the high and the low for the day
  • open + 2 returns an array where each value is the addition of the open for the day and 2