dboichenko

map_custom_value_usefull

Library "map_custom_value_usefull"
makes it possible to create:
1.map with array value:
    for this purpose need:
    1.create map with arrays type value
    2.put your array in this map, overloaded put method itself will put the array based on the type into the required field
    3.next you can get this array with help standard get function, which will determine which field you need to get.(But because of this, only arrays of the same type can be used in one map)
2.map with map value:
    for this purpose need:
    1.create map with maps type value
    2.put your other map in how value in your based map, need you need to put it in the field corresponding to your map type
    3.next you can get this map with help standard get function.You need to specify a special field name here, because the get function cannot be overloaded without additional variables(
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.