PINE LIBRARY
Güncellendi Time

Library "Time"
Utilities for measuring time.
bar() Gets the number of milliseconds per bar.
Utilities for measuring time.
bar() Gets the number of milliseconds per bar.
Sürüm Notları
v2 Added shortcut for getting the date.Added:
date(datetime) Gets the start of the day for the provided time value.
Parameters:
datetime: The time of day to acquire the date from.
Returns: The number of milliseconds representing the date for the given value.
Sürüm Notları
v3Added:
timeOfDay(datetime) Gets milliseconds from the start of the day.
Parameters:
datetime: The date/time to acquire the time of day from.
Returns: The number of milliseconds representing time of day.
Sürüm Notları
v4 Adds spanToLen functionsSürüm Notları
v5Added:
spanToLen(timespan, type, sessionMinutes)
Returns the number (float) bars that represents the timespan provided.
Parameters:
timespan: The number of units to convert to bar count.
type: The type of units to measure. ('Bar', 'Minute' or 'Day')
sessionMinutes: Optional override for the number of minutes per session. (Default: Regular = 390, Extended = 1440)
Returns: The number bars that represents the timespan provided.
spanToIntLen(timespan, type)
Returns the number (int) bars that represents the timespan provided.
Parameters:
timespan: The number of units to convert to bar count.
type: The type of units to measure. ('Bar', 'Minute' or 'Day')
Returns: The number bars that represents the timespan provided.
Sürüm Notları
v6 improve spanToLen to allow for more typesSürüm Notları
v7 cleanup bar() calculationPine 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.