PINE LIBRARY

TimeframeUtilsCustom

167
Library "TimeframeUtilsCustom"
Timeframe utilities library

f_timeframe_to_minutes(tf)
  Converts timeframe string to minutes
  Parameters:
    tf (string): String representation of timeframe
  Returns: Number of minutes in the given timeframe

f_bars_for_hours(timeframe_minutes, hours)
  Calculate number of bars for a specified time period
  Parameters:
    timeframe_minutes (int): Current timeframe in minutes
    hours (int): Number of hours to calculate bars for
  Returns: Number of bars representing the specified hours

f_bars_for_days(timeframe_minutes, days)
  Calculate number of bars for a specified number of days
  Parameters:
    timeframe_minutes (int): Current timeframe in minutes
    days (int): Number of days to calculate bars for
  Returns: Number of bars representing the specified days

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。