TPCharts

TPCTime_Public

TPCharts Mis à jour   
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()
Notes de version:
v2

Added:
getPeriodAsMs()

isChildPeriod()

Updated:
getTimeOffset()

isInTimeRange()
Notes de version:
v3
Notes de version:
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.
Notes de version:
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.

Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.