PINE LIBRARY
utils

Library "utils"
Few essentials captured together by ajitgorde121
timer(timeStart, timeEnd)
finds difference between two timestamps
Parameters:
timeStart (int): start timestamp
timeEnd (int)
Returns: [days, hours, minutes, seconds, milliseconds]
check_overflow(pivots, barArray, dir)
finds difference between two timestamps
Parameters:
pivots (array<float>): pivots array
barArray (array<float>): pivot bar array
dir (int): direction for which overflow need to be checked
Returns: bool overflow
get_trend_series(pivots, length, highLow, trend)
finds series of pivots in particular trend
Parameters:
pivots (array<float>): pivots array
length (int): length for which trend series need to be checked
highLow (int): filter pivot high or low
trend (int): Uptrend or Downtrend
Returns: int[] trendIndexes
get_trend_series(pivots, firstIndex, lastIndex)
finds series of pivots in particular trend
Parameters:
pivots (array<float>): pivots array
firstIndex (int): First index of the series
lastIndex (int): Last index of the series
Returns: int[] trendIndexes
getConsolidatedLabel(include, labels, separator)
Consolidates labels into single string by concatenating it with given separator
Parameters:
include (array<bool>): array of conditions to include label or not
labels (array<string>): string array of labels
separator (simple string): Separator for concatenating labels
Returns: string labelText
getColors(theme)
gets array of colors based on theme
Parameters:
theme (simple string): dark or light theme
Returns: color[] themeColors
Few essentials captured together by ajitgorde121
timer(timeStart, timeEnd)
finds difference between two timestamps
Parameters:
timeStart (int): start timestamp
timeEnd (int)
Returns: [days, hours, minutes, seconds, milliseconds]
check_overflow(pivots, barArray, dir)
finds difference between two timestamps
Parameters:
pivots (array<float>): pivots array
barArray (array<float>): pivot bar array
dir (int): direction for which overflow need to be checked
Returns: bool overflow
get_trend_series(pivots, length, highLow, trend)
finds series of pivots in particular trend
Parameters:
pivots (array<float>): pivots array
length (int): length for which trend series need to be checked
highLow (int): filter pivot high or low
trend (int): Uptrend or Downtrend
Returns: int[] trendIndexes
get_trend_series(pivots, firstIndex, lastIndex)
finds series of pivots in particular trend
Parameters:
pivots (array<float>): pivots array
firstIndex (int): First index of the series
lastIndex (int): Last index of the series
Returns: int[] trendIndexes
getConsolidatedLabel(include, labels, separator)
Consolidates labels into single string by concatenating it with given separator
Parameters:
include (array<bool>): array of conditions to include label or not
labels (array<string>): string array of labels
separator (simple string): Separator for concatenating labels
Returns: string labelText
getColors(theme)
gets array of colors based on theme
Parameters:
theme (simple string): dark or light theme
Returns: color[] themeColors
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. Yazarı tebrik ederiz! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun yayınlarda yeniden kullanılması Topluluk Kuralları tarafından yönetilir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde 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. Yazarı tebrik ederiz! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun yayınlarda yeniden kullanılması Topluluk Kuralları tarafından yönetilir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.