faiyaz7283

Data2D

faiyaz7283 Premium Updated   
Library "Data2D"
A library for two dimensional data array.
Release Notes: v2

Refactored:
Many breaking changes from v1. Full refactoring of code, and fixed a lot of small bugs.
Release Notes: v3

Added:
Few comparison functions for cmpr values. Plus a little bit of refactoring.
Release Notes: v4
Changes:
- 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.
Release Notes: v9

Breaking changes from v8:
All function name changes made.

Added:
Key types which stores data types (string, float, integer, boolean).
Release Notes: v10

Added:
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.
Release Notes: v11

Added:
  • 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

Faiyaz Haider
Pine library

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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.