PINE LIBRARY
Updated convergingpatterns

Library "convergingpatterns"
Library having implementation of converging chart patterns
getPatternNameByType(patternType)
Returns pattern name based on type
Parameters:
patternType (int): integer value representing pattern type
Returns: string name of the pattern
method find(this, sProperties, dProperties, patterns, ohlcArray)
find converging patterns for given zigzag
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/2): Current zigzag Object
sProperties (ScanProperties): ScanProperties Object
dProperties (DrawingProperties type from Trendoscope/abstractchartpatterns/5): DrawingProperties Object
patterns (array<Pattern> type from Trendoscope/abstractchartpatterns/5): array of existing patterns to check for duplicates
ohlcArray (array<OHLC> type from Trendoscope/ohlc/1): array of OHLC values for historical reference
Returns: string name of the pattern
ScanProperties
Object containing properties for pattern scanning
Fields:
baseProperties (ScanProperties type from Trendoscope/abstractchartpatterns/5): Object of Base Scan Properties
convergingDistanceMultiplier (series float): when multiplied with pattern size gets the max number of bars within which the pattern should converge
Library having implementation of converging chart patterns
getPatternNameByType(patternType)
Returns pattern name based on type
Parameters:
patternType (int): integer value representing pattern type
Returns: string name of the pattern
method find(this, sProperties, dProperties, patterns, ohlcArray)
find converging patterns for given zigzag
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/2): Current zigzag Object
sProperties (ScanProperties): ScanProperties Object
dProperties (DrawingProperties type from Trendoscope/abstractchartpatterns/5): DrawingProperties Object
patterns (array<Pattern> type from Trendoscope/abstractchartpatterns/5): array of existing patterns to check for duplicates
ohlcArray (array<OHLC> type from Trendoscope/ohlc/1): array of OHLC values for historical reference
Returns: string name of the pattern
ScanProperties
Object containing properties for pattern scanning
Fields:
baseProperties (ScanProperties type from Trendoscope/abstractchartpatterns/5): Object of Base Scan Properties
convergingDistanceMultiplier (series float): when multiplied with pattern size gets the max number of bars within which the pattern should converge
Release Notes
v2Updated:
method find(this, sProperties, dProperties, patterns, ohlcArray)
find converging patterns for given zigzag
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/2): Current zigzag Object
sProperties (ScanProperties): ScanProperties Object
dProperties (DrawingProperties type from Trendoscope/abstractchartpatterns/8): DrawingProperties Object
patterns (array<Pattern> type from Trendoscope/abstractchartpatterns/8): array of existing patterns to check for duplicates
ohlcArray (array<OHLC> type from Trendoscope/ohlc/1): array of OHLC values for historical reference
Returns: string name of the pattern
ScanProperties
Object containing properties for pattern scanning
Fields:
baseProperties (ScanProperties type from Trendoscope/abstractchartpatterns/8): Object of Base Scan Properties
convergingDistanceMultiplier (series float): when multiplied with pattern size gets the max number of bars within which the pattern should converge
Release Notes
v3Updated:
method find(this, sProperties, dProperties, patterns, ohlcArray)
find converging patterns for given zigzag
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/3): Current zigzag Object
sProperties (ScanProperties): ScanProperties Object
dProperties (DrawingProperties type from Trendoscope/abstractchartpatterns/10): DrawingProperties Object
patterns (array<Pattern> type from Trendoscope/abstractchartpatterns/10): array of existing patterns to check for duplicates
ohlcArray (array<OHLC> type from Trendoscope/ohlc/3): array of OHLC values for historical reference
Returns: string name of the pattern
ScanProperties
Object containing properties for pattern scanning
Fields:
baseProperties (ScanProperties type from Trendoscope/abstractchartpatterns/10): Object of Base Scan Properties
convergingDistanceMultiplier (series float): when multiplied with pattern size gets the max number of bars within which the pattern should converge
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.