ta.lowestbars
Offset (0 or negative) to the lowest value of the last length bars; the newest bar wins ties. With one argument the source is low.
ta.lowestbars(source: float, length: simple int) -> series int
ta.lowestbars(length: simple int) -> series int
Parameters
sourcefloat: The values to search. Leave it out (ta.lowestbars(length)) to use low.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
ago = ta.lowestbars(low, 20)