Library "MathOperator" Methods to handle operators. method add(value_a, value_b) Add value a to b. Namespace types: series float, simple float, input float, const float Parameters: value_a (float) : float, value a. value_b (float) : float, value b. Returns: float. method subtract(value_a, value_b) subtract value b from a. Namespace...
The TUF_LOGIC library incorporates three-valued logic (also known as trilean logic) into Pine Script, enabling the representation of states beyond the binary True and False to include an 'Uncertain' state. This addition is particularly apt for financial market contexts where information may not always be black or white, accommodating scenarios of partial or...
Library "xor" xor(a, b) xor: Exclusive or, or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false). Parameters: a : first argument b : second argument Returns: returns xor (true only if a and b are true, but not both) Example: true xor true = false true xor false =...