RicardoSantos

ArrayMultipleDimensionPrototype

Library "ArrayMultipleDimensionPrototype"
A prototype library for Multiple Dimensional array methods

index_md_to_1d()

new_float(dimensions, initial_size) Creates a variable size multiple dimension array.
  Parameters:
    dimensions: int array, dimensions of array.
    initial_size: float, default=na, initial value of the array.
  Returns: float array

dimensions(id, value) set value of a element in a multiple dimensions array.
  Parameters:
    id: float array, multiple dimensions array.
    value: float, new value.
  Returns: float.

get(id) get value of a multiple dimensions array.
  Parameters:
    id: float array, multiple dimensions array.
  Returns: float.

set(id) set value of a element in a multiple dimensions array.
  Parameters:
    id: float array, multiple dimensions array.
  Returns: float.
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.