PINE LIBRARY
업데이트됨 ZigzagMethods

Library "ZigzagMethods"
Object oriented implementation of Zigzag methods. Please refer to ZigzagTypes library for User defined types used in this library
tostring(this, sortKeys, sortOrder, includeKeys)
Converts ZigzagTypes/Pivot object to string representation
Parameters:
this: ZigzagTypes/Pivot
sortKeys: If set to true, string output is sorted by keys.
sortOrder: Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys: Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of ZigzagTypes/Pivot
tostring(this, sortKeys, sortOrder, includeKeys)
Converts Array of Pivot objects to string representation
Parameters:
this: Pivot object array
sortKeys: If set to true, string output is sorted by keys.
sortOrder: Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys: Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of Pivot object array
tostring(this)
Converts ZigzagFlags object to string representation
Parameters:
this: ZigzagFlags object
Returns: string representation of ZigzagFlags
tostring(this, sortKeys, sortOrder, includeKeys)
Converts ZigzagTypes/Zigzag object to string representation
Parameters:
this: ZigzagTypes/Zigzagobject
sortKeys: If set to true, string output is sorted by keys.
sortOrder: Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys: Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of ZigzagTypes/Zigzag
calculate(this, ohlc, indicators, indicatorNames)
Calculate zigzag based on input values and indicator values
Parameters:
this: Zigzag object
ohlc: Array containing OHLC values. Can also have custom values for which zigzag to be calculated
indicators: Array of indicator values
indicatorNames: Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: current Zigzag object
calculate(this)
Calculate zigzag based on properties embedded within Zigzag object
Parameters:
this: Zigzag object
Returns: current Zigzag object
nextlevel(this)
Calculate Next Level Zigzag based on the current calculated zigzag object
Parameters:
this: Zigzag object
Returns: Next Level Zigzag object
clear(this)
Clears zigzag drawings array
Parameters:
this: array<ZigzagDrawing>
Returns: void
drawfresh(this)
draws fresh zigzag based on properties embedded in ZigzagDrawing object
Parameters:
this: ZigzagDrawing object
Returns: ZigzagDrawing object
drawcontinuous(this)
draws zigzag based on the zigzagmatrix input
Parameters:
this: ZigzagDrawing object
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
Object oriented implementation of Zigzag methods. Please refer to ZigzagTypes library for User defined types used in this library
tostring(this, sortKeys, sortOrder, includeKeys)
Converts ZigzagTypes/Pivot object to string representation
Parameters:
this: ZigzagTypes/Pivot
sortKeys: If set to true, string output is sorted by keys.
sortOrder: Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys: Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of ZigzagTypes/Pivot
tostring(this, sortKeys, sortOrder, includeKeys)
Converts Array of Pivot objects to string representation
Parameters:
this: Pivot object array
sortKeys: If set to true, string output is sorted by keys.
sortOrder: Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys: Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of Pivot object array
tostring(this)
Converts ZigzagFlags object to string representation
Parameters:
this: ZigzagFlags object
Returns: string representation of ZigzagFlags
tostring(this, sortKeys, sortOrder, includeKeys)
Converts ZigzagTypes/Zigzag object to string representation
Parameters:
this: ZigzagTypes/Zigzagobject
sortKeys: If set to true, string output is sorted by keys.
sortOrder: Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys: Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of ZigzagTypes/Zigzag
calculate(this, ohlc, indicators, indicatorNames)
Calculate zigzag based on input values and indicator values
Parameters:
this: Zigzag object
ohlc: Array containing OHLC values. Can also have custom values for which zigzag to be calculated
indicators: Array of indicator values
indicatorNames: Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: current Zigzag object
calculate(this)
Calculate zigzag based on properties embedded within Zigzag object
Parameters:
this: Zigzag object
Returns: current Zigzag object
nextlevel(this)
Calculate Next Level Zigzag based on the current calculated zigzag object
Parameters:
this: Zigzag object
Returns: Next Level Zigzag object
clear(this)
Clears zigzag drawings array
Parameters:
this: array<ZigzagDrawing>
Returns: void
drawfresh(this)
draws fresh zigzag based on properties embedded in ZigzagDrawing object
Parameters:
this: ZigzagDrawing object
Returns: ZigzagDrawing object
drawcontinuous(this)
draws zigzag based on the zigzagmatrix input
Parameters:
this: ZigzagDrawing object
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
릴리즈 노트
v2Updates to auto calculate zigzag in Drawing methods.
Updated:
drawfresh(this, ohlc, indicators, indicatorNames)
draws fresh zigzag based on properties embedded in ZigzagDrawing object
Parameters:
this: ZigzagDrawing object
ohlc: values on which the zigzag needs to be calculated and drawn. If not set will use regular OHLC
indicators: Array of indicator values
indicatorNames: Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: ZigzagDrawing object
drawcontinuous(this, ohlc, indicators, indicatorNames)
draws zigzag based on the zigzagmatrix input
Parameters:
this: ZigzagDrawing object
ohlc: values on which the zigzag needs to be calculated and drawn. If not set will use regular OHLC
indicators: Array of indicator values
indicatorNames: Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
릴리즈 노트
v3Added:
drawplain(this)
draws fresh zigzag based on properties embedded in ZigzagDrawing object without trying to calculate
Parameters:
this: ZigzagDrawing object
Returns: ZigzagDrawing object
릴리즈 노트
v4Fixed issues highlighted by moebius1977
릴리즈 노트
v5Updated:
method tostring(this, sortKeys, sortOrder, includeKeys)
Converts ZigzagTypes/Zigzag object to string representation
Namespace types: Objects.Zigzag
Parameters:
this (Zigzag type from HeWhoMustNotBeNamed/ZigzagTypes/4): ZigzagTypes/Zigzagobject
sortKeys (bool): If set to true, string output is sorted by keys.
sortOrder (int): Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys (string[]): Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of ZigzagTypes/Zigzag
method calculate(this)
Calculate zigzag based on properties embedded within Zigzag object
Namespace types: Objects.Zigzag
Parameters:
this (Zigzag type from HeWhoMustNotBeNamed/ZigzagTypes/4): Zigzag object
Returns: current Zigzag object
method nextlevel(this)
Calculate Next Level Zigzag based on the current calculated zigzag object
Namespace types: Objects.Zigzag
Parameters:
this (Zigzag type from HeWhoMustNotBeNamed/ZigzagTypes/4): Zigzag object
Returns: Next Level Zigzag object
method clear(this)
Clears zigzag drawings array
Namespace types: Objects.ZigzagDrawing[]
Parameters:
this (ZigzagDrawing[] type from HeWhoMustNotBeNamed/ZigzagTypes/4): array<ZigzagDrawing>
Returns: void
method drawplain(this)
draws fresh zigzag based on properties embedded in ZigzagDrawing object without trying to calculate
Namespace types: Objects.ZigzagDrawing
Parameters:
this (ZigzagDrawing type from HeWhoMustNotBeNamed/ZigzagTypes/4): ZigzagDrawing object
Returns: ZigzagDrawing object
method drawfresh(this, ohlc, indicators, indicatorNames)
draws fresh zigzag based on properties embedded in ZigzagDrawing object
Namespace types: Objects.ZigzagDrawing
Parameters:
this (ZigzagDrawing type from HeWhoMustNotBeNamed/ZigzagTypes/4): ZigzagDrawing object
ohlc (float[]): values on which the zigzag needs to be calculated and drawn. If not set will use regular OHLC
indicators (matrix<float>): Array of indicator values
indicatorNames (string[]): Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: ZigzagDrawing object
method drawcontinuous(this, ohlc, indicators, indicatorNames)
draws zigzag based on the zigzagmatrix input
Namespace types: Objects.ZigzagDrawing
Parameters:
this (ZigzagDrawing type from HeWhoMustNotBeNamed/ZigzagTypes/4): ZigzagDrawing object
ohlc (float[]): values on which the zigzag needs to be calculated and drawn. If not set will use regular OHLC
indicators (matrix<float>): Array of indicator values
indicatorNames (string[]): Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
릴리즈 노트
v6Updated:
method tostring(this, sortKeys, sortOrder, includeKeys)
Converts ZigzagTypes/Zigzag object to string representation
Namespace types: Objects.Zigzag
Parameters:
this (Zigzag type from HeWhoMustNotBeNamed/ZigzagTypes/5): ZigzagTypes/Zigzagobject
sortKeys (bool): If set to true, string output is sorted by keys.
sortOrder (int): Applicable only if sortKeys is set to true. Positive number will sort them in ascending order whreas negative numer will sort them in descending order. Passing 0 will not sort the keys
includeKeys (string[]): Array of string containing selective keys. Optional parmaeter. If not provided, all the keys are considered
Returns: string representation of ZigzagTypes/Zigzag
method calculate(this)
Calculate zigzag based on properties embedded within Zigzag object
Namespace types: Objects.Zigzag
Parameters:
this (Zigzag type from HeWhoMustNotBeNamed/ZigzagTypes/5): Zigzag object
Returns: current Zigzag object
method nextlevel(this)
Calculate Next Level Zigzag based on the current calculated zigzag object
Namespace types: Objects.Zigzag
Parameters:
this (Zigzag type from HeWhoMustNotBeNamed/ZigzagTypes/5): Zigzag object
Returns: Next Level Zigzag object
method clear(this)
Clears zigzag drawings array
Namespace types: Objects.ZigzagDrawing[]
Parameters:
this (ZigzagDrawing[] type from HeWhoMustNotBeNamed/ZigzagTypes/5): array<ZigzagDrawing>
Returns: void
method drawplain(this)
draws fresh zigzag based on properties embedded in ZigzagDrawing object without trying to calculate
Namespace types: Objects.ZigzagDrawing
Parameters:
this (ZigzagDrawing type from HeWhoMustNotBeNamed/ZigzagTypes/5): ZigzagDrawing object
Returns: ZigzagDrawing object
method drawfresh(this, ohlc, indicators, indicatorNames)
draws fresh zigzag based on properties embedded in ZigzagDrawing object
Namespace types: Objects.ZigzagDrawing
Parameters:
this (ZigzagDrawing type from HeWhoMustNotBeNamed/ZigzagTypes/5): ZigzagDrawing object
ohlc (float[]): values on which the zigzag needs to be calculated and drawn. If not set will use regular OHLC
indicators (matrix<float>): Array of indicator values
indicatorNames (string[]): Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: ZigzagDrawing object
method drawcontinuous(this, ohlc, indicators, indicatorNames)
draws zigzag based on the zigzagmatrix input
Namespace types: Objects.ZigzagDrawing
Parameters:
this (ZigzagDrawing type from HeWhoMustNotBeNamed/ZigzagTypes/5): ZigzagDrawing object
ohlc (float[]): values on which the zigzag needs to be calculated and drawn. If not set will use regular OHLC
indicators (matrix<float>): Array of indicator values
indicatorNames (string[]): Array of indicator names for which values are present. Size of indicators array should be equal to that of indicatorNames
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.