set (_item , _obj , _key ) -> key index for parent object's array
add (_obj , _key , _item ) -> key index for parent object's array
write (object , kind ) -> stringified object // (enter kind to cut off key )
============================================
obj obj Object storage container/item Fields: key: (string ) item name kind: (string ) item's type(for writing) item: (string ) item (converted to string) keys: (string[] ) keys of all sub-items and objects items: (obj[] ) nested obj off individual subitems (for later...)
============================================
new(_name, _kind) create multitype object Parameters: _name: (string) Name off object _kind: (string) Preset Type (_OBJECT if a container item) Returns: object container/item 2-in-1
============================================
add(_item, _obj, _key) Set item to object obj item (same as set, prep for future Pine methods) Parameters: _item: ( int / float / bool / string ) _obj: (obj multi-type-item object) _key: ( string )
set(_item, _obj, _key) Set item to object obj item (same as add, prep for future Pine methods) Parameters: _item: ( int / float / bool / string ) _obj: (obj multi-type-item object) _key: ( string )
addstore(_parent, _child) Add a object as a subobject to storage (Future upgrade to write/edit) Parameters: _parent: to insert obj into _child: to be inserted
setstore(_child, _parent) Add a object as a subobject to storage (Future upgrade to write/edit) Parameters: _child: to be inserted _parent: to insert obj into
add(_parent, _child) Add a object as a string rendered item Parameters: _parent: to insert obj into _child: to be inserted
set(_child, _parent) Add a object as a string rendered item Parameters: _child: to be inserted _parent: to insert obj into
@Daveatt, i am grateful. i hope to get around to the json IN soon.. i have some code really hope i can share soon, screener, alerts, Strat tester with edge mode/FIFO/margin multipair.. slowly the pieces be coming together,
theheirophant
⋅
love the work you do bro, these are valuable contributions to the pine scripting community. cheers!
Very useful. I agree wizard level script. 2 points I didn't understand or might be possible improvements: - Want to write a json object without the root object key, don't know how to do that and whether it is possible - How to send null literals, seems not possible?
RickHardyPro
⋅
Hey, this looks masive!! Thank you, but I can't understand how to use it. Any help would be greatly appreciated