PINE LIBRARY
rzigzag

Library "rzigzag"
Recursive Zigzag Using Matrix allows to create zigzags recursively on multiple levels. This is an old library converted to V6
zigzag(length, ohlc, numberOfPivots, offset)
calculates plain zigzag based on input
Parameters:
length (int): Zigzag Length
ohlc (array<float>): Array containing ohlc values. Can also contain custom series
numberOfPivots (simple int): Number of max pivots to be returned
offset (simple int): Offset from current bar. Can be used for calculations based on confirmed bars
Returns: [matrix<float> zigzagmatrix, bool[] flags]
iZigzag(length, h, l, numberOfPivots)
calculates plain zigzag based on input array
Parameters:
length (int): Zigzag Length
h (array<float>): array containing high values of a series
l (array<float>): array containing low values of a series
numberOfPivots (simple int): Number of max pivots to be returned
Returns: matrix<float> zigzagmatrix
nextlevel(zigzagmatrix, numberOfPivots)
calculates next level zigzag based on present zigzag coordinates
Parameters:
zigzagmatrix (matrix<float>): Matrix containing zigzag pivots, bars, bar time, direction and level
numberOfPivots (simple int): Number of max pivots to be returned
Returns: matrix<float> zigzagmatrix
draw(zigzagmatrix, flags, lineColor, lineWidth, lineStyle, showLabel, xloc)
draws zigzag based on the zigzagmatrix input
Parameters:
zigzagmatrix (matrix<float>): Matrix containing zigzag pivots, bars, bar time, direction and level
flags (array<bool>): Zigzag pivot flags
lineColor (color): Zigzag line color
lineWidth (int): Zigzag line width
lineStyle (string): Zigzag line style
showLabel (bool): Flag to indicate display pivot labels
xloc (string): xloc preference for drawing lines/labels
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
draw(length, ohlc, numberOfPivots, offset, lineColor, lineWidth, lineStyle, showLabel, xloc)
calculates and draws zigzag based on zigzag length and source input
Parameters:
length (int): Zigzag Length
ohlc (array<float>): Array containing ohlc values. Can also contain custom series
numberOfPivots (simple int): Number of max pivots to be returned
offset (simple int): Offset from current bar. Can be used for calculations based on confirmed bars
lineColor (color): Zigzag line color
lineWidth (int): Zigzag line width
lineStyle (string): Zigzag line style
showLabel (bool): Flag to indicate display pivot labels
xloc (string): xloc preference for drawing lines/labels
Returns: [matrix<float> zigzagmatrix, array<line> zigzaglines, array<label> zigzaglabels, bool[] flags]
drawfresh(zigzagmatrix, zigzaglines, zigzaglabels, lineColor, lineWidth, lineStyle, showLabel, xloc)
draws fresh zigzag for all pivots in the input matrix.
Parameters:
zigzagmatrix (matrix<float>): Matrix containing zigzag pivots, bars, bar time, direction and level
zigzaglines (array<line>): array to which all newly created lines will be added
zigzaglabels (array<label>): array to which all newly created lables will be added
lineColor (color): Zigzag line color
lineWidth (int): Zigzag line width
lineStyle (string): Zigzag line style
showLabel (bool): Flag to indicate display pivot labels
xloc (string): xloc preference for drawing lines/labels
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
Recursive Zigzag Using Matrix allows to create zigzags recursively on multiple levels. This is an old library converted to V6
zigzag(length, ohlc, numberOfPivots, offset)
calculates plain zigzag based on input
Parameters:
length (int): Zigzag Length
ohlc (array<float>): Array containing ohlc values. Can also contain custom series
numberOfPivots (simple int): Number of max pivots to be returned
offset (simple int): Offset from current bar. Can be used for calculations based on confirmed bars
Returns: [matrix<float> zigzagmatrix, bool[] flags]
iZigzag(length, h, l, numberOfPivots)
calculates plain zigzag based on input array
Parameters:
length (int): Zigzag Length
h (array<float>): array containing high values of a series
l (array<float>): array containing low values of a series
numberOfPivots (simple int): Number of max pivots to be returned
Returns: matrix<float> zigzagmatrix
nextlevel(zigzagmatrix, numberOfPivots)
calculates next level zigzag based on present zigzag coordinates
Parameters:
zigzagmatrix (matrix<float>): Matrix containing zigzag pivots, bars, bar time, direction and level
numberOfPivots (simple int): Number of max pivots to be returned
Returns: matrix<float> zigzagmatrix
draw(zigzagmatrix, flags, lineColor, lineWidth, lineStyle, showLabel, xloc)
draws zigzag based on the zigzagmatrix input
Parameters:
zigzagmatrix (matrix<float>): Matrix containing zigzag pivots, bars, bar time, direction and level
flags (array<bool>): Zigzag pivot flags
lineColor (color): Zigzag line color
lineWidth (int): Zigzag line width
lineStyle (string): Zigzag line style
showLabel (bool): Flag to indicate display pivot labels
xloc (string): xloc preference for drawing lines/labels
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
draw(length, ohlc, numberOfPivots, offset, lineColor, lineWidth, lineStyle, showLabel, xloc)
calculates and draws zigzag based on zigzag length and source input
Parameters:
length (int): Zigzag Length
ohlc (array<float>): Array containing ohlc values. Can also contain custom series
numberOfPivots (simple int): Number of max pivots to be returned
offset (simple int): Offset from current bar. Can be used for calculations based on confirmed bars
lineColor (color): Zigzag line color
lineWidth (int): Zigzag line width
lineStyle (string): Zigzag line style
showLabel (bool): Flag to indicate display pivot labels
xloc (string): xloc preference for drawing lines/labels
Returns: [matrix<float> zigzagmatrix, array<line> zigzaglines, array<label> zigzaglabels, bool[] flags]
drawfresh(zigzagmatrix, zigzaglines, zigzaglabels, lineColor, lineWidth, lineStyle, showLabel, xloc)
draws fresh zigzag for all pivots in the input matrix.
Parameters:
zigzagmatrix (matrix<float>): Matrix containing zigzag pivots, bars, bar time, direction and level
zigzaglines (array<line>): array to which all newly created lines will be added
zigzaglabels (array<label>): array to which all newly created lables will be added
lineColor (color): Zigzag line color
lineWidth (int): Zigzag line width
lineStyle (string): Zigzag line style
showLabel (bool): Flag to indicate display pivot labels
xloc (string): xloc preference for drawing lines/labels
Returns: [array<line> zigzaglines, array<label> zigzaglabels]
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.