Stringify - Timeframe Enumeration --> String

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

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

Need Indicators/Strategies for TradingView? -> t.me/pinescripters_jobs
General questions about Pinescript? -> t.me/pinescripters
My Premium Discord Coming soon!
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.


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.

Want to use this library?

Copy the following line and paste it in your script.