PINE LIBRARY
已更新 MathOperator

Library "MathOperator"
Methods to handle operators.
add(value_a, value_b) Add value a to b.
Parameters:
Returns: float.
subtract(value_a, value_b) subtract value b from a.
Parameters:
Returns: float.
multiply(value_a, value_b) multiply value a with b.
Parameters:
Returns: float.
divide(value_a, value_b) divide value a with b.
Parameters:
Returns: float.
remainder(value_a, value_b) remainder of a with b.
Parameters:
Returns: float.
equal(value_a, value_b) equality of value a with b.
Parameters:
Returns: bool.
not_equal(value_a, value_b) inequality of value a with b.
Parameters:
Returns: bool.
over(value_a, value_b) value a is over b.
Parameters:
Returns: bool.
under(value_a, value_b) value a is under b.
Parameters:
Returns: bool.
over_equal(value_a, value_b) value a is over equal b.
Parameters:
Returns: bool.
under_equal(value_a, value_b) value a is under equal b.
Parameters:
Returns: bool.
and_(value_a, value_b) logical and of a with b
Parameters:
Returns: bool.
or_(value_a, value_b) logical or of a with b.
Parameters:
Returns: bool.
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。