RicardoSantos

ArrayOperationsInt

Library "ArrayOperationsInt"
Array Basic Operations for Integers

add(sample_a, sample_b) Adds sample_b to sample_a and returns a new array.
Parameters:
  • sample_a: values to be added to.
  • sample_b: values to add.
Returns: int array with added results.

subtract(sample_a, sample_b) subtracts sample_b from sample_a and returns a new array.
Parameters:
  • sample_a: values to be subtracted from.
  • sample_b: values to subtract.
Returns: int array with subtracted results.

multiply(sample_a, sample_b) multiply sample_a with sample_b and returns a new array.
Parameters:
  • sample_a: values to multiply.
  • sample_b: values to multiply with.
Returns: int array with multiplied results.

divide(sample_a, sample_b) divide sample_a with sample_b and returns a new array.
Parameters:
  • sample_a: values to divide.
  • sample_b: values to divide with.
Returns: int array with divided results.

power(sample_a, sample_b) rise sample_a to the power of sample_b and returns a new array.
Parameters:
  • sample_a: base values to raise.
  • sample_b: values of exponents.
Returns: int array with raised results.

remainder(sample_a, sample_b) integer remainder of sample_a under the dividend sample_b and returns a new array.
Parameters:
  • sample_a: values of quotients.
  • sample_b: values of dividends.
Returns: int array with remainder results.
Biblioteka Pine

Działając zgodnie z prawdziwym duchem TradingView, autor opublikował ten kod Pine jako bibliotekę o otwartym kodzie źródłowym, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Brawa dla niego! Możesz korzystać z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzystać z tej biblioteki?

Skopiuj poniższy wiersz i wklej go w swoim skrypcie.