PINE LIBRARY

GGB_lib_utils

30
Library "GGB_lib_utils"

gbb_tf_to_display(tf_minutes, tf_string)
  gbb_tf_to_display
/ description Converts minutes and TF string into a short standard label.
/ param tf_minutes (float)
/ param tf_string (string)
/ Returns (string) Timeframe label (M1,H1,D1,...)
  Parameters:
    tf_minutes (float)
    tf_string (string)

gbb_convert_bars(_bars)
  gbb_convert_bars
/ description Formats a number of bars into a duration (days, hours, minutes + bar count).
/ param _bars (int)
/ Returns (string)
  Parameters:
    _bars (int)

gbb_goldorak_init(_tf5Levels_input)
  gbb_goldorak_init
/ description Builds a contextual message about the current timeframe and optional 5-level TF.
/ param _tf5Levels_input (string) Alternative timeframe ("" = current timeframe).
/ Returns (string, string, float) [tf_display, message, current_minutes]
  Parameters:
    _tf5Levels_input (string)

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.