PINE LIBRARY

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.
arraysdimensionmatrixmultiple

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