PINE LIBRARY

Stringify - Timeframe Enumeration --> String

By DasanC
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`
dasancformattingstrings
DasanC
Algo Trading Simplified 👉 PaxProfits.com
Discover the easy way to manage Forex trading accounts. Trusted by traders globally.

Forex Trading Coaching 👉 primetimefox.com
Learn consistent currency pair trading from a professional.

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