MarketScript > Functions > Explicit Field Referencing |
from (expr, field)
Expression to which the field selection will be applied.
Field to be selected.
values: Field name with or without ‘gv.’ prefix, e.g. close or gv.close.
(close, open, high, low, midpoint ...)
from("/GCL[1]", close)
if (
"/GCL[0]" >= (from("/GCL[1]", high) + from("/GCL[0]", low))/2,
"/GCL[0]",
0
)