Help Files
Explicit Field Referencing

From function

from (expr, field)

parameters

  1. expr:

    Expression to which the field selection will be applied.

  2. field:

    Field to be selected.

    values: Field name with or without ‘gv.’ prefix, e.g. close or gv.close.
    (close, open, high, low, midpoint ...)

examples

from("/GCL[1]", close)
if (
    "/GCL[0]" >= (from("/GCL[1]", high) + from("/GCL[0]", low))/2,
    "/GCL[0]",
    0
)