Maximum
 

Short Name: Maximum

Definition: Returns a value or an array of values representing the maximum of object1 and object2

Usage: maximum(object1,object2)

Objective:
  • Execute a test and returns a value or an array representing the maximum
  • 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:
  • maximum(1,2) always returns 2
  • maximum(low,1000) returns an array where each value is either the low of the day if higher than 1000, or the value 1000
  • maximum(open,close) returns an array, with either the open or the close of the day.