PINE LIBRARY
Güncellendi TPCTime_Public

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()
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()
Sürüm Notları
v2Added:
getPeriodAsMs()
isChildPeriod()
Updated:
getTimeOffset()
isInTimeRange()
Sürüm Notları
v3Sürüm Notları
v4Added:
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 [Mo]
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.
Sürüm Notları
v5Added:
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 kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.