Skip to content

Algorithm SDK

Math.lowest

The smallest number in a list. Cloud9Trader adds it to JavaScript’s built-in Math.

lowest(x: number[]): number;
  • x: an array of numbers, such as the result of prices().

The same as Math.min(...x).

Stops the run if x is not an array: “Value passed to Math.lowest() must be an array of numbers”.

function onIntervalClose() {
log("lowest", Math.lowest(prices.low(20)));
}