PINE LIBRARY
تم تحديثه FunctionElementsInArray

Library "FunctionElementsInArray"
Methods to count number of elements in arrays
count_float(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: float array, sample data to process.
value: float value to check for equality.
Returns: int.
count_int(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: int array, sample data to process.
value: int value to check for equality.
Returns: int.
count_string(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: string array, sample data to process.
value: string value to check for equality.
Returns: int.
count_bool(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: bool array, sample data to process.
value: bool value to check for equality.
Returns: int.
count_color(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: color array, sample data to process.
value: color value to check for equality.
Returns: int.
extract_indices_float(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: float array, sample data to process.
value: float value to check for equality.
Returns: int.
extract_indices_int(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: int array, sample data to process.
value: int value to check for equality.
Returns: int.
extract_indices_string(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: string array, sample data to process.
value: string value to check for equality.
Returns: int.
extract_indices_bool(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: bool array, sample data to process.
value: bool value to check for equality.
Returns: int.
extract_indices_color(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: color array, sample data to process.
value: color value to check for equality.
Returns: int.
Methods to count number of elements in arrays
count_float(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: float array, sample data to process.
value: float value to check for equality.
Returns: int.
count_int(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: int array, sample data to process.
value: int value to check for equality.
Returns: int.
count_string(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: string array, sample data to process.
value: string value to check for equality.
Returns: int.
count_bool(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: bool array, sample data to process.
value: bool value to check for equality.
Returns: int.
count_color(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: color array, sample data to process.
value: color value to check for equality.
Returns: int.
extract_indices_float(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: float array, sample data to process.
value: float value to check for equality.
Returns: int.
extract_indices_int(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: int array, sample data to process.
value: int value to check for equality.
Returns: int.
extract_indices_string(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: string array, sample data to process.
value: string value to check for equality.
Returns: int.
extract_indices_bool(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: bool array, sample data to process.
value: bool value to check for equality.
Returns: int.
extract_indices_color(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: color array, sample data to process.
value: color value to check for equality.
Returns: int.
ملاحظات الأخبار
v2removed type references from name, as previously was not possible to use same name functions with different signature.
Added:
count(sample, value) Counts the number of elements equal to provided value in array.
Parameters:
sample: color array, sample data to process.
value: color value to check for equality.
Returns: int.
extract_indices(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
Parameters:
sample: color array, sample data to process.
value: color value to check for equality.
Returns: int.
Removed:
count_float(sample, value) Counts the number of elements equal to provided value in array.
count_int(sample, value) Counts the number of elements equal to provided value in array.
count_string(sample, value) Counts the number of elements equal to provided value in array.
count_bool(sample, value) Counts the number of elements equal to provided value in array.
count_color(sample, value) Counts the number of elements equal to provided value in array.
extract_indices_float(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
extract_indices_int(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
extract_indices_string(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
extract_indices_bool(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
extract_indices_color(sample, value) Counts the number of elements equal to provided value in array, and returns its indices.
مكتبة باين
كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشورات تخضع لقواعد الموقع.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
مكتبة باين
كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشورات تخضع لقواعد الموقع.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.