PINE LIBRARY

AllTimeHighLow

Library "AllTimeHighLow"
Provides functions calculating the all-time high/low of values.

hi(val)
  Calculates the all-time high of a series.
  Parameters:
    val (float): Series to use (`high` is used if no argument is supplied).
  Returns: The all-time high for the series.

lo(val)
  Calculates the all-time low of a series.
  Parameters:
    val (float): Series to use (`low` is used if no argument is supplied).
  Returns: The all-time low for the series.
MATH

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer