highest
Highest value of field over period
highest(source, period)
Parameters
Highest Value - highest(source, period)
Maximum value over specified period.
- source (field): Data series
- period (int): Lookback period
Formula
highest = MAX(source) over period
Examples
// close at 20-bar high
close == highest(high, 20);
// price broke above 14-day high
close > highest(close, 14);
// new 50-bar high today
high > highest(high, 50)[1];
Returns
Float (maximum value)