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 "CandlesGroup_Types" CandlesGroup Type allows you to efficiently store and access properties of all the candles in your chart. You can easily manipulate large datasets, work with multiple timeframes, or analyze multiple symbols simultaneously. By encapsulating the properties of each candle within a CandlesGroup object, you gain a convenient and...
█ OVERVIEW This indicator as an educational and showcase the usage of user-defined types (UDT) or objects for Ultimate Oscillator. █ CREDITS TradingView █ FEATURES 1. Color of plot is based on contrast color of chart background. 2. Plot fill of overbought and oversold. 3. Support Multi Timeframe.
█ OVERVIEW This indicator is a predecessor to Regression Channel Alternative MTF , which is coded based on latest update of type, object and method. █ IMPORTANT NOTES This indicator is NOT true Multi Timeframe (MTF) but considered as Alternative MTF which calculate 100 bars for Primary MTF, can be refer from provided line helper. The timeframe scenarios...
This is experimental script for zigzag which uses type, method and array. Not recommend for actual usage, for pine script study maybe useful. In this experiment, I use type as coded below. It seems have limitation as specially when push as array. As Trading View recommendation, pushing float and int into array especially for type not guarantee to work. I agree...
█ OVERVIEW This is a divergence indicator based on Relative Strength Index (RSI). My attempt to make this indicator updated based on latest pine script features such as type, object and method. █ FEATURES 1. Color of plot and label is based on contrast color of chart background. Able to customize color from style menu. 2. Big divergence (Regular Divergence)...
The script shows an example implementation of dictionary-like data type which can store key:value pairs (Python style). Both keys and values can have any of the following type: • string • integer • float • boolean • color You can add items of different types to the same dictionary (e.g. key = 12 and value = "value" stored in the same dictionary with key = "key"...
Library "Vector2Array" functions to handle vector2 Array operations. . references: docs.unity3d.com gist.github.com github.com gist.github.com gist.github.com gist.github.com . from(source, prop_sep, vect_sep) Generate array of vector2 from string. Parameters: source : string Source string of the vectors. prop_sep : string Separator character...
Library "Segment2" Structure representation of a directed straight line in two dimensions from origin to target vectors. . reference: graphics.stanford.edu . new(origin, target) Generate a new segment. Parameters: origin : Vector2 . Origin of the segment. target : Vector2 . Target of the segment. Returns: Segment2. new(origin_x, origin_y,...
Library "CommonTypesDrawing" Provides a common library source for common types of used graphical drawing structures. Includes: `Triangle, Quad, Polygon` Triangle Representation of a triangle using lines and linefill. Fields: ab : Edge of point a to b. bc : Edge of point b to c. ca : Edge of point c to a. fill : Fill of the...
Library "Vector2" Representation of two dimensional vectors or points. This structure is used to represent positions in two dimensional space or vectors, for example in spacial coordinates in 2D space. ~~~ references: docs.unity3d.com gist.github.com github.com gist.github.com gist.github.com gist.github.com ~~~ new(x, y) Create a new Vector2...
Library "CommonTypesMath" Provides a common library source for common types of useful mathematical structures. Includes: `complex, Vector2, Vector3, Vector4, Quaternion, Segment2, Segment3, Pole, Plane, M32, M44` complex Representation of a Complex Number, a complex number `z` is a number in the form `z = x + yi`, Fields: re : Real part of the...
🔶 OVERVIEW • This educational script will sort an array of tickers alphabetically and place these values in an table , together with the according current price value next to each ticker . 🔶 SORT ALPHABETICALLY 🔹 I. We make a User Defined Type (UDT) obj , with: · ticker - the string name of the ticker · price ...
Example overload functions accept loading of _value for types float, int, or string, then positively identifies the actual argument type of that specific loaded _value.
Example function accepts loading of _value for types float, int, or string, then identifies whether the loaded _value is a string number, string, or number.
This script only provides a basic __setter and __getter registration function with a type-based limitation. We don't want to blow the code with additional conditions. The suggestion was to get the basic functionality. Benefits: - Get/set/update global-like variables between functions - No init needed. You can call a entry before you set it. Get-Functions: -...