PINE LIBRARY

pson

Updated
PineScript Object Notation

A workaround not having objects in pinescript.
This is a Json-look-alike interpreter.
Format: "attr=value:attr1=value1:attr2=value2".

You can add new attributes, get the value in those attributes, set new values to existing attributes and check if an attribute exists.
Release Notes
v2 - now you can have psons inside psons

Added:
get_itterable()

Updated:
set()

get()
Release Notes
fixing typo
Release Notes
v4 - fixed issue with the add() function
Release Notes
v5 - added get_values() get_int() get_bool()
Release Notes
v6 added set_values()
Release Notes
v7 added remove()
strings

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