PINE LIBRARY
WTFTime Library (do not delete)

Library "WTFTime"
Utilities for measuring time.
bar()
Gets the number of milliseconds per bar.
date(datetime)
Gets the start of the day for the provided time value.
Parameters:
datetime (int): The date/time to acquire the date from.
Returns: The number of milliseconds representing the date for the given value.
timeOfDay(datetime)
Gets milliseconds from the start of the day.
Parameters:
datetime (int): The date/time to acquire the time of day from.
Returns: The number of milliseconds representing time of day.
spanToLen(timespan, type, sessionMinutes)
Returns the number (float) bars that represents the timespan provided.
Parameters:
timespan (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Bars', 'Minute', 'Minutes', 'Day' or 'Days')
sessionMinutes (simple int): 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 (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Minute' or 'Day')
Returns: The number bars that represents the timespan provided.
Utilities for measuring time.
bar()
Gets the number of milliseconds per bar.
date(datetime)
Gets the start of the day for the provided time value.
Parameters:
datetime (int): The date/time to acquire the date from.
Returns: The number of milliseconds representing the date for the given value.
timeOfDay(datetime)
Gets milliseconds from the start of the day.
Parameters:
datetime (int): The date/time to acquire the time of day from.
Returns: The number of milliseconds representing time of day.
spanToLen(timespan, type, sessionMinutes)
Returns the number (float) bars that represents the timespan provided.
Parameters:
timespan (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Bars', 'Minute', 'Minutes', 'Day' or 'Days')
sessionMinutes (simple int): 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 (simple float): The number of units to convert to bar count.
type (simple string): The type of units to measure. ('Bar', 'Minute' or 'Day')
Returns: The number bars that represents the timespan provided.
Biblioteka Pine
W zgodzie z duchem TradingView autor opublikował ten kod Pine jako bibliotekę open-source, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Ukłony dla autora. Można korzystać z tej biblioteki prywatnie lub w innych publikacjach open-source, jednak ponowne wykorzystanie tego kodu w publikacjach podlega Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Biblioteka Pine
W zgodzie z duchem TradingView autor opublikował ten kod Pine jako bibliotekę open-source, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Ukłony dla autora. Można korzystać z tej biblioteki prywatnie lub w innych publikacjach open-source, jednak ponowne wykorzystanie tego kodu w publikacjach podlega Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.