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 =...
Example of manipulating a float series to: • switch from one source to another • maintain a level by referencing itself This script publication is intended for: • Educational Purposes Who is it for? Anyone who wants to learn how to change the position or state of an active float series.