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
Parameter | Type | Purpose |
---|---|---|
series | series | Input series, taken into calculation |
n | integer | Period 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)