Script: Minimum | Mastock Help



Short Name: Minimum

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

Usage: minimum(object1,object2) or minimum(array)

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