Library "columns" Error Tolerant Matrix Setter/Getter Operations. Easy ways to add/remove items into start and end of Columns as well as arrays to grow and shrink matrix. if mismatched sizes occur the typified NA value will be there to prevent catastrophic crashing. Rows and Columns are split into 2 libraries due to limitations on number of exports as well ...
Library "rows" Error Tolerant Matrix Setter/Getter Operations. Easy ways to add/remove items into start and end of rows as well as arrays to grow and shrink matrix. if mismatched sizes occur the typified NA value will be there to prevent catastrophic crashing. columns and rows are split into 2 libraries due to limitations on number of exports as well as...
A very simple Hashmap in Pinescript version 4 It uses two arrays one to store indices and one to store values currently this only supports keys of type int and values of type floats. index array: (20, 30, 80, 90) value array: (9.1,8.1,6.5,3.5) You can access the value 9.1 by using the key 20. No fancy hash functions were used just a very simple practical mechanism.
Hash map's in Pinescript?? Absolutely This Library is the first step towards bringing a much needed data structure to the Pine Script community. "Object" allows Pine coders to finally create objects full or unique key:value pairs, which are converted to strings and stored in an array. Data can be stored and accessed using dedicated get and set methods. The...