RicardoSantos

FunctionElementsInArray

RicardoSantos Wizard Diupdate   
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.
Catatan Rilis:
v2

removed 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.
Perpustakaan pine

Dalam semangat TradingView yang sesungguhnya, penulis telah membuat Pine Code sebagai perpustakaan sumber-terbuka sehingga programmer Pine lainnya dapat menggunakannya kembali. Beri semangat kepada penulis! Anda dapat menggunakan perpustakaan ini secara pribadi maupun dalam publikasi terbuka, namun menggunakan ulang kode ini diatur dalam Tata Tertib.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.

Ingin menggunakan perpustakaan ini?

Copy garis berikut ini dan tempel pada script anda.