PINE LIBRARY

Stringify - Timeframe Enumeration --> String

939
Library "Stringify"
Cast variable types and enumerations to human-readable Strings

timeframe(string)
  Cast a timeframe enumeration to readable string.
  Parameters:
    string: `T` is a timeframe enumeration ('3D', '120', '15', '5s' ...)
  Returns: A string representation of the timeframe or 'NA' if `x` is `na`

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.