RicardoSantos

MathOperator

RicardoSantos Wizard 已更新   
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.
版本注释:
v2 Added method prefix to functions.
Pine脚本库

本着真正的TradingView精神,作者将此Pine代码以开源脚本库发布,以便我们社区的其他Pine程序员可以重用它。向作者致敬!您可以私下或在其他开源出版物中使用此库,但在出版物中重用此代码受网站规则约束。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想使用这个脚本库吗?

复制以下行并将其粘贴到您的脚本中。