PINE LIBRARY

TimeframeToStringTool

95
Library "TimeframeToStringTool"
Maps a worded string for timeframes useful when working with the input.timeframe input. Use like timeframeToString("120") and the output will be "2 hour"

timeframeToString(timeframeString)
  Converts timeframe strings e.g. 60" will return Day
  Parameters:
    timeframeString (string)
  Returns: returns a map

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.