PINE LIBRARY
تم تحديثه PivotLibrary222

Library "PivotLibrary222"
f_determinePivotStrength(_pivotCandidateRelativeIndex, _type, _maxStrength)
Determines the strength of a pivot (low or high).
Parameters:
_pivotCandidateRelativeIndex (int): The relative bar index of the pivot candidate.
_type (string): "low" for a pivot low, "high" for a pivot high.
_maxStrength (int): The maximum number of bars to check on either side for strength.
Returns: An array containing [leftStrength, rightStrength].
f_getPlotColorForStrength(_strength)
Gets a plotting color based on pivot strength.
Parameters:
_strength (int): The calculated pivot strength.
Returns: A color for plotting.
f_updateExistingPivotLow(f_pivotLows, f_pivotLowInfoIndex, f_newStrength, f_showLabels)
Updates an existing pivot LOW's strength and its corresponding chart label.
Parameters:
f_pivotLows (array<pivotLowInfo>): The array of pivotLowInfo objects.
f_pivotLowInfoIndex (int): The index of the pivot to update in the array.
f_newStrength (int): The new (increased) strength of the pivot.
f_showLabels (bool): A boolean to control if labels should be updated.
f_updateExistingPivotHigh(f_pivotHighs, f_pivotHighInfoIndex, f_newStrength, f_showLabels)
Updates an existing pivot HIGH's strength and its corresponding chart label.
Parameters:
f_pivotHighs (array<pivotHighInfo>): The array of pivotHighInfo objects.
f_pivotHighInfoIndex (int): The index of the pivot to update in the array.
f_newStrength (int): The new (increased) strength of the pivot.
f_showLabels (bool): A boolean to control if labels should be updated.
f_findPivotLows(f_pivotLows, f_minStrength, f_maxStrength, f_showLabels)
Finds and processes pivot lows.
Parameters:
f_pivotLows (array<pivotLowInfo>): The array of pivotLowInfo objects to read from and modify.
f_minStrength (int): Minimum strength required for a new pivot to be recorded.
f_maxStrength (int): Maximum strength to search for when determining pivot strength.
f_showLabels (bool): A boolean to control if new labels should be created.
f_findPivotHighs(f_pivotHighs, f_minStrength, f_maxStrength, f_showLabels)
Finds and processes pivot highs.
Parameters:
f_pivotHighs (array<pivotHighInfo>): The array of pivotHighInfo objects to read from and modify.
f_minStrength (int): Minimum strength required for a new pivot to be recorded.
f_maxStrength (int): Maximum strength to search for when determining pivot strength.
f_showLabels (bool): A boolean to control if new labels should be created.
pivotHighInfo
Represents a detected pivot high.
Fields:
abs_index (series int)
price (series float)
strength (series int)
label_id (series label)
pivotLowInfo
Represents a detected pivot low.
Fields:
abs_index (series int)
price (series float)
strength (series int)
label_id (series label)
f_determinePivotStrength(_pivotCandidateRelativeIndex, _type, _maxStrength)
Determines the strength of a pivot (low or high).
Parameters:
_pivotCandidateRelativeIndex (int): The relative bar index of the pivot candidate.
_type (string): "low" for a pivot low, "high" for a pivot high.
_maxStrength (int): The maximum number of bars to check on either side for strength.
Returns: An array containing [leftStrength, rightStrength].
f_getPlotColorForStrength(_strength)
Gets a plotting color based on pivot strength.
Parameters:
_strength (int): The calculated pivot strength.
Returns: A color for plotting.
f_updateExistingPivotLow(f_pivotLows, f_pivotLowInfoIndex, f_newStrength, f_showLabels)
Updates an existing pivot LOW's strength and its corresponding chart label.
Parameters:
f_pivotLows (array<pivotLowInfo>): The array of pivotLowInfo objects.
f_pivotLowInfoIndex (int): The index of the pivot to update in the array.
f_newStrength (int): The new (increased) strength of the pivot.
f_showLabels (bool): A boolean to control if labels should be updated.
f_updateExistingPivotHigh(f_pivotHighs, f_pivotHighInfoIndex, f_newStrength, f_showLabels)
Updates an existing pivot HIGH's strength and its corresponding chart label.
Parameters:
f_pivotHighs (array<pivotHighInfo>): The array of pivotHighInfo objects.
f_pivotHighInfoIndex (int): The index of the pivot to update in the array.
f_newStrength (int): The new (increased) strength of the pivot.
f_showLabels (bool): A boolean to control if labels should be updated.
f_findPivotLows(f_pivotLows, f_minStrength, f_maxStrength, f_showLabels)
Finds and processes pivot lows.
Parameters:
f_pivotLows (array<pivotLowInfo>): The array of pivotLowInfo objects to read from and modify.
f_minStrength (int): Minimum strength required for a new pivot to be recorded.
f_maxStrength (int): Maximum strength to search for when determining pivot strength.
f_showLabels (bool): A boolean to control if new labels should be created.
f_findPivotHighs(f_pivotHighs, f_minStrength, f_maxStrength, f_showLabels)
Finds and processes pivot highs.
Parameters:
f_pivotHighs (array<pivotHighInfo>): The array of pivotHighInfo objects to read from and modify.
f_minStrength (int): Minimum strength required for a new pivot to be recorded.
f_maxStrength (int): Maximum strength to search for when determining pivot strength.
f_showLabels (bool): A boolean to control if new labels should be created.
pivotHighInfo
Represents a detected pivot high.
Fields:
abs_index (series int)
price (series float)
strength (series int)
label_id (series label)
pivotLowInfo
Represents a detected pivot low.
Fields:
abs_index (series int)
price (series float)
strength (series int)
label_id (series label)
ملاحظات الأخبار
v2Updated:
pivotHighInfo
Represents a detected pivot high.
Fields:
abs_index (series int)
price (series float)
strength (series int)
label_id (series label)
time (series float)
bars_since_last (series int)
amplitude (series float)
cycle_phase_id (series string)
is_confirmed (series bool)
pivotLowInfo
Represents a detected pivot low.
Fields:
abs_index (series int)
price (series float)
strength (series int)
label_id (series label)
time (series float)
bars_since_last (series int)
amplitude (series float)
cycle_phase_id (series string)
is_confirmed (series bool)
مكتبة باين
كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشورات تخضع لقواعد الموقع.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
مكتبة باين
كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشورات تخضع لقواعد الموقع.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.