PINE LIBRARY

TimeframeUtilsCustom

145
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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.