Skip to main content

highest

Syntax Format​

The syntax format can be of two types:

highest(series, n)
highest(n)

Overview​

The highest function provides the highest value of the given series type within a specified period. This function is usually used in the scripts, which determine the highest price value in the past to identify the overbought state of an asset and spot potential trend reversals.

Parameters​

ParameterTypePurpose
seriesseriesInput series, taken into calculation
nintegerPeriod to look back into the history

Returns: series.

Example​

highest_value = highest(close, 14)

In case the series type is not specified, the high series is used:

highest(high, 14)