PINE LIBRARY
GGB_lib_utils

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)
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)
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 publications is governed by House Rules.
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.
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 publications is governed by House Rules.
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.