ta.highest
Highest value of the last length bars (na values are skipped). With one argument the source is high.
ta.highest(source: float, length: simple int) -> series float
ta.highest(length: simple int) -> series float
Parameters
sourcefloat: The values to search, na values skipped. Leave it out (ta.highest(length)) to use high.lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error. The window includes the current bar.
Example
hh = ta.highest(high, 20)