PINE LIBRARY

useMutateGlobal

43
Library "useMutateGlobal"

init(value)
  Parameters:
    value (int)

init(value)
  Parameters:
    value (float)

init(value)
  Parameters:
    value (bool)

init(value)
  Parameters:
    value (color)

init(value)
  Parameters:
    value (string)

init(value)
  Parameters:
    value (label)

init(value)
  Parameters:
    value (line)

init(value)
  Parameters:
    value (linefill)

init(value)
  Parameters:
    value (box)

init(value)
  Parameters:
    value (table)

set(source, value)
  set value to first element in array. MUST call init() first.
  Parameters:
    source (array<int>): array, value of the same type
    value (int)
  Returns: array containing single item

set(source, value)
  Parameters:
    source (array<float>)
    value (float)

set(source, value)
  Parameters:
    source (array<bool>)
    value (bool)

set(source, value)
  Parameters:
    source (array<color>)
    value (color)

set(source, value)
  Parameters:
    source (array<string>)
    value (string)

set(source, value)
  Parameters:
    source (array<label>)
    value (label)

set(source, value)
  Parameters:
    source (array<line>)
    value (line)

set(source, value)
  Parameters:
    source (array<linefill>)
    value (linefill)

set(source, value)
  Parameters:
    source (array<box>)
    value (box)

set(source, value)
  Parameters:
    source (array<table>)
    value (table)

get(source)
  gets value
  Parameters:
    source (array<int>): any type of array
  Returns: first item from array

get(source)
  Parameters:
    source (array<float>)

get(source)
  Parameters:
    source (array<bool>)

get(source)
  Parameters:
    source (array<color>)

get(source)
  Parameters:
    source (array<string>)

get(source)
  Parameters:
    source (array<label>)

get(source)
  Parameters:
    source (array<line>)

get(source)
  Parameters:
    source (array<linefill>)

get(source)
  Parameters:
    source (array<box>)

get(source)
  Parameters:
    source (array<table>)

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.