TPCharts

TPCTime_Public

TPCharts Atualizado   
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()
Notas de Lançamento:
v2

Added:
getPeriodAsMs()

isChildPeriod()

Updated:
getTimeOffset()

isInTimeRange()
Notas de Lançamento:
v3
Notas de Lançamento:
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.
Notas de Lançamento:
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.

Biblioteca do Pine

No verdadeiro espírito TradingView, o autor publicou este código de Pine como uma biblioteca de código aberto para que outros programadores de Pine de nossa comunidade possam reutilizá-lo. Um brinde ao autor! Você pode usar esta biblioteca em particular ou em outras publicações de código aberto, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Gostaria de usar essa biblioteca?

Copie a seguinte linha e cole-a em seu script.