A library for two dimensional data array.
Many breaking changes from v1. Full refactoring of code, and fixed a lot of small bugs.
Few comparison functions for cmpr values. Plus a little bit of refactoring.
- Removed all index based preset functions.
- All comparison functions now use Original value as first param and compared value as second. Previously it was the opposite order.
Breaking changes from v8:
All function name changes made.
Key types which stores data types (string, float, integer, boolean).
Two new comparison functions.
compareSpreadToNum() - Returns an int with the value 1 (greater), 0 (equal), or -1 (less).
compareAllSpreadsToNums() - Returns an int array with value of 1 (greater), 0 (equal), or -1 (less).
A 'usage details' sections is also written at the end of the script, with a lot of examples.
- isAllKeyTypesEqual(array): Check if all key types are the same. Returns: Bool.
- isDataTypeMatchAll(string, array) : Check if a given data type matches with existing types. Returns: bool
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.
Copy the following line and paste it in your script.