HighestBars

forge.taclassSince Forge API 1
Signaturepython
forge.ta.HighestBars(**inputs: Any) -> None

How many bars ago the highest value of the window was.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint301 to 5000

Indicator: Bars since the highest

How many bars ago the highest value of the last period bars was, 0 when it is the current bar. When two bars share the highest value, the more recent one counts.