RicardoSantos

MathOperator

RicardoSantos Wizard Mis à jour   
Library "MathOperator"
Methods to handle operators.

add(value_a, value_b) Add value a to b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: float.

subtract(value_a, value_b) subtract value b from a.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: float.

multiply(value_a, value_b) multiply value a with b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: float.

divide(value_a, value_b) divide value a with b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: float.

remainder(value_a, value_b) remainder of a with b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: float.

equal(value_a, value_b) equality of value a with b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: bool.

not_equal(value_a, value_b) inequality of value a with b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: bool.

over(value_a, value_b) value a is over b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: bool.

under(value_a, value_b) value a is under b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: bool.

over_equal(value_a, value_b) value a is over equal b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: bool.

under_equal(value_a, value_b) value a is under equal b.
Parameters:
  • value_a: float, value a.
  • value_b: float, value b.
Returns: bool.

and_(value_a, value_b) logical and of a with b
Parameters:
  • value_a: bool, value a.
  • value_b: bool, value b.
Returns: bool.

or_(value_a, value_b) logical or of a with b.
Parameters:
  • value_a: bool, value a.
  • value_b: bool, value b.
Returns: bool.
Notes de version:
v2 Added method prefix to functions.
Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.