TPCharts

TPCTime_Public

TPCharts Обновлено   
Library "TPCTime_Public"
Helpers for calculating time

getTimeOffset(interval, amount) Returns the length in ms for the given amount of the given interval.
  Parameters:
    interval: Interval to calculate, for example "D" or "60".
    amount: Number of intervals for which to calculate the time range in ms.
  Returns: The number of ms in the amount of the given interval.

isInTimeRange()
Информация о релизе:
v2

Added:
getPeriodAsMs()

isChildPeriod()

Updated:
getTimeOffset()

isInTimeRange()
Информация о релизе:
v3
Информация о релизе:
v4

Added:
getHumanDayOfWeek(timestamp, isShort, isWrap, startWrap, endWrap)
  Returns the human-readable day of week for the given time.
  Parameters:
    timestamp: The UNIX timestamp for which to return the day of the week.
    isShort: Whether to return a short date, e.g. "Mo" instead of "Monday"
    isWrap: Whether to wrap the date, e.g. placing it inside characters such as brackets to result in
    startWrap: Start wrap character, e.g. an opening bracket.
    endWrap: End wrap character, e.g. a closing bracket.
  Returns: The number of ms in the given period.
Информация о релизе:
v5

Added:
isInTimeRangeFromCurrentTime(period, periodCount)
  Returns true if the current time is greater than or equal to the given periodCount of periods, else returns false.
  Parameters:
    period (string): Period to calculate with, for example "D" or "60".
    periodCount (int): Amount of given periods to test.
  Returns: True if the current time is greater than or equal to the given periodCount of periods, else returns false.

Библиотека Pine

В истинном духе TradingView автор опубликовал этот код Pine как библиотеку с открытым исходным кодом, чтобы другие разработчики Pine из нашего сообщества могли использовать его повторно. Поблагодарим автора! Вы можете использовать эту библиотеку приватно или в других публикациях с открытым исходным кодом, но повторное использование этого кода в публикации регулируется Правилами поведения.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать эту библиотеку?

Скопируйте текст в буфер обмена и вставьте в свой скрипт.