v10
Updated:
method findPattern(this, properties, dProperties, patterns, ohlcArray, maxLivePatterns, draw)
Find patterns based on the currect zigzag object and store them in the patterns array
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/3): Zigzag object containing pivots
properties (ScanProperties): ScanProperties object
@oaram dProperties DrawingProperties object
dProperties (DrawingProperties)
patterns (array<Pattern>): Array of Pattern objects
ohlcArray (array<OHLC> type from Trendoscope/ohlc/3)
maxLivePatterns (int): max number of patterns to be retained in the patterns array
draw (bool): pattern is drawn on the chart automatically if set to true
Returns: Current Pattern object
method findPatternPlain(this, properties, dProperties, patterns, ohlcArray)
Find patterns based on the currect zigzag object but will not store them in the pattern array.
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/3): Zigzag object containing pivots
properties (ScanProperties): ScanProperties object
@oaram dProperties DrawingProperties object
dProperties (DrawingProperties)
patterns (array<Pattern>): Array of Pattern objects
ohlcArray (array<OHLC> type from Trendoscope/ohlc/3)
Returns: Flag indicating if the pattern is valid, Current Pattern object
method findFNP(this, currentPattern, sProperties)
Find flag and pennant patterns based on the current zigzag object and returns the pattern object along with flag
Namespace types: zg.Zigzag
Parameters:
this (Zigzag type from Trendoscope/ZigzagLite/3): Zigzag object containing pivots
currentPattern (Pattern): Pattern object to be used as base
sProperties (ScanProperties): ScanProperties object
Returns: Flag indicating if the fng pattern is valid, new FNPPattern object
Pattern
Object containing Individual Pattern data
Fields:
pivots (array<Pivot> type from Trendoscope/ZigzagLite/3): array of Zigzag Pivot points
trendLine1 (Line type from Trendoscope/LineWrapper/2): First trend line joining pivots 1, 3, 5
trendLine2 (Line type from Trendoscope/LineWrapper/2): Second trend line joining pivots 2, 4 (, 6)
properties (DrawingProperties): DrawingProperties Object carrying common properties
patternColor (series color): Individual pattern color. Lines and labels will be using this color.
ratioDiff (series float): Difference between trendLine1 and trendLine2 ratios
zigzagLine (series polyline): Internal zigzag line drawing Object
pivotLabels (array<label>): array containning Pivot labels
patternLabel (series label): pattern label Object
patternType (series int): integer representing the pattern type
patternName (series string): Type of pattern in string
FNPPattern
Object containing Individual Pattern data
Fields:
pivots (array<Pivot> type from Trendoscope/ZigzagLite/3): array of Zigzag Pivot points
trendLine1 (Line type from Trendoscope/LineWrapper/2): First trend line joining pivots 1, 3, 5
trendLine2 (Line type from Trendoscope/LineWrapper/2): Second trend line joining pivots 2, 4 (, 6)
baseLine (Line type from Trendoscope/LineWrapper/2): Base line of the flag or pennant
properties (DrawingProperties): DrawingProperties Object carrying common properties
patternColor (series color): Individual pattern color. Lines and labels will be using this color.
ratioDiff (series float): Difference between trendLine1 and trendLine2 ratios
zigzagLine (series polyline): Internal zigzag line drawing Object
pivotLabels (array<label>): array containning Pivot labels
patternLabel (series label): pattern label Object
patternType (series int): integer representing the pattern type
patternName (series string): Type of pattern in string