RicardoSantos

MathOperator

RicardoSantos Wizard Uppdaterad   
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.
Versionsinformation:
v2 Added method prefix to functions.
Pinebibliotek

I sann TradingView-anda har författaren publicerat denna Pine-kod som ett bibliotek med öppen källkod så att andra Pine-programmerare från vår community kan återanvända den. Hatten av för författaren! Du kan använda det här biblioteket privat eller i andra publikationer med öppen källkod, men återanvändning av den här koden i en publikation regleras av våra ordningsregler.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här biblioteket?

Kopiera följande rad och klistra in det i ditt skript.