Math.highest
The largest number in a list. Cloud9Trader adds it to JavaScript’s built-in Math.
highest(x: number[]): number;Parameters
Section titled “Parameters”- x: an array of numbers, such as the result of
prices().
The same as Math.max(...x).
Errors
Section titled “Errors”Stops the run if x is not an array: “Value passed to Math.highest() must be an array of numbers”.
Example
Section titled “Example”function onIntervalClose() { log("highest", Math.highest(prices.high(20)));}