PINE LIBRARY
업데이트됨 utils

Library "utils"
Few essentials captured together (subset of arrayutils)
timer(timeStart, timeEnd)
finds difference between two timestamps
Parameters:
timeStart (int): start timestamp
timeEnd (int)
Returns: [days, hours, minutes, seconds, milliseconds]
method check_overflow(pivots, barArray, dir)
finds difference between two timestamps
Namespace types: array<float>
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
method get_trend_series(pivots, length, highLow, trend)
finds series of pivots in particular trend
Namespace types: array<float>
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
method get_trend_series(pivots, firstIndex, lastIndex)
finds series of pivots in particular trend
Namespace types: array<float>
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 (string): Separator for concatenating labels
Returns: string labelText
method getColors(theme)
gets array of colors based on theme
Namespace types: series Theme
Parameters:
theme (series Theme): dark or light theme
Returns: color[] themeColors
Few essentials captured together (subset of arrayutils)
timer(timeStart, timeEnd)
finds difference between two timestamps
Parameters:
timeStart (int): start timestamp
timeEnd (int)
Returns: [days, hours, minutes, seconds, milliseconds]
method check_overflow(pivots, barArray, dir)
finds difference between two timestamps
Namespace types: array<float>
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
method get_trend_series(pivots, length, highLow, trend)
finds series of pivots in particular trend
Namespace types: array<float>
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
method get_trend_series(pivots, firstIndex, lastIndex)
finds series of pivots in particular trend
Namespace types: array<float>
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 (string): Separator for concatenating labels
Returns: string labelText
method getColors(theme)
gets array of colors based on theme
Namespace types: series Theme
Parameters:
theme (series Theme): dark or light theme
Returns: color[] themeColors
릴리즈 노트
v2Added:
watermark(content, tblPosition, textColor, transparency, textSize)
Prints watermark on chart using tables
Parameters:
content (string): Content to be printed
tblPosition (simple string): position of the watermark
textColor (simple color): Text Color
transparency (simple int): color transparency of watermark
textSize (simple string): size of watermark
Returns: void
릴리즈 노트
v3릴리즈 노트
v4Added:
runTimer(timerPosition, backgroundColor, textColor, lblSize)
Prints the run timer of the indicator
Parameters:
timerPosition (simple string): table position of the timer table
backgroundColor (color): table background color
textColor (color): table text color
lblSize (string): Text size
Returns: void
릴리즈 노트
v5릴리즈 노트
v6파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.