PINE LIBRARY
ZigzagLite

Library "ZigzagLite"
Lighter version of the Zigzag Library. Without indicators and sub-component divisions
method getPrices(pivots)
Namespace types: array<Pivot>
Parameters:
pivots (array<Pivot>)
method getBars(pivots)
Namespace types: array<Pivot>
Parameters:
pivots (array<Pivot>)
method getPoints(pivots)
Namespace types: array<Pivot>
Parameters:
pivots (array<Pivot>)
method getPoints(this)
Namespace types: Zigzag
Parameters:
this (Zigzag)
method calculate(this, ohlc, ltfHighTime, ltfLowTime)
Namespace types: Zigzag
Parameters:
this (Zigzag)
ohlc (array<float>)
ltfHighTime (int)
ltfLowTime (int)
method calculate(this)
Namespace types: Zigzag
Parameters:
this (Zigzag)
PivotCandle
PivotCandle represents data of the candle which forms either pivot High or pivot low or both
Fields:
_high (series float): High price of candle forming the pivot
_low (series float): Low price of candle forming the pivot
length (series int): Pivot length
pHighBar (series int): represents number of bar back the pivot High occurred.
pLowBar (series int): represents number of bar back the pivot Low occurred.
pHigh (series float): Pivot High Price
pLow (series float): Pivot Low Price
Pivot
Pivot refers to zigzag pivot.
Fields:
point (chart.point)
dir (series int)
level (series int)
ratio (series float)
sizeRatio (series float)
barRatio (series float)
ZigzagFlags
Flags required for drawing zigzag.
Fields:
newPivot (series bool)
doublePivot (series bool)
updateLastPivot (series bool)
Zigzag
Zigzag object which contains whole zigzag calculation parameters and pivots
Fields:
length (series int)
numberOfPivots (series int)
offset (series int)
level (series int)
zigzagPivots (array<Pivot>)
flags (ZigzagFlags)
ZigzagObject
Zigzag Drawing Object
Fields:
zigzagLine (series line)
zigzagLabel (series label)
ZigzagProperties
Object which holds properties of zigzag drawing.
Fields:
lineColor (series color)
lineWidth (series int)
lineStyle (series string)
showLabel (series bool)
textColor (series color)
maxObjects (series int)
xloc (series string)
curved (series bool)
force_overlay (series bool)
ZigzagDrawing
Object which holds complete zigzag drawing objects and properties.
Fields:
zigzag (Zigzag)
properties (ZigzagProperties)
drawings (array<ZigzagObject>)
ZigzagDrawingPL
Object which holds complete zigzag drawing objects and properties - polyline version
Fields:
zigzag (Zigzag)
properties (ZigzagProperties)
zigzagLabels (array<label>)
zigzagLine (series polyline)
Lighter version of the Zigzag Library. Without indicators and sub-component divisions
method getPrices(pivots)
Namespace types: array<Pivot>
Parameters:
pivots (array<Pivot>)
method getBars(pivots)
Namespace types: array<Pivot>
Parameters:
pivots (array<Pivot>)
method getPoints(pivots)
Namespace types: array<Pivot>
Parameters:
pivots (array<Pivot>)
method getPoints(this)
Namespace types: Zigzag
Parameters:
this (Zigzag)
method calculate(this, ohlc, ltfHighTime, ltfLowTime)
Namespace types: Zigzag
Parameters:
this (Zigzag)
ohlc (array<float>)
ltfHighTime (int)
ltfLowTime (int)
method calculate(this)
Namespace types: Zigzag
Parameters:
this (Zigzag)
PivotCandle
PivotCandle represents data of the candle which forms either pivot High or pivot low or both
Fields:
_high (series float): High price of candle forming the pivot
_low (series float): Low price of candle forming the pivot
length (series int): Pivot length
pHighBar (series int): represents number of bar back the pivot High occurred.
pLowBar (series int): represents number of bar back the pivot Low occurred.
pHigh (series float): Pivot High Price
pLow (series float): Pivot Low Price
Pivot
Pivot refers to zigzag pivot.
Fields:
point (chart.point)
dir (series int)
level (series int)
ratio (series float)
sizeRatio (series float)
barRatio (series float)
ZigzagFlags
Flags required for drawing zigzag.
Fields:
newPivot (series bool)
doublePivot (series bool)
updateLastPivot (series bool)
Zigzag
Zigzag object which contains whole zigzag calculation parameters and pivots
Fields:
length (series int)
numberOfPivots (series int)
offset (series int)
level (series int)
zigzagPivots (array<Pivot>)
flags (ZigzagFlags)
ZigzagObject
Zigzag Drawing Object
Fields:
zigzagLine (series line)
zigzagLabel (series label)
ZigzagProperties
Object which holds properties of zigzag drawing.
Fields:
lineColor (series color)
lineWidth (series int)
lineStyle (series string)
showLabel (series bool)
textColor (series color)
maxObjects (series int)
xloc (series string)
curved (series bool)
force_overlay (series bool)
ZigzagDrawing
Object which holds complete zigzag drawing objects and properties.
Fields:
zigzag (Zigzag)
properties (ZigzagProperties)
drawings (array<ZigzagObject>)
ZigzagDrawingPL
Object which holds complete zigzag drawing objects and properties - polyline version
Fields:
zigzag (Zigzag)
properties (ZigzagProperties)
zigzagLabels (array<label>)
zigzagLine (series polyline)
مكتبة باين
كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشورات تخضع لقواعد الموقع.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
مكتبة باين
كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشورات تخضع لقواعد الموقع.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.