rev(vars Data, int Length): vars
Generates a reverse copy of the Data series which starts with the oldest elements. Useful for sending data series to other software that needs the series in old-to-new order.
conv(float* fData, int Length): vars
Converts a float array to a var series, for
passing it to functions as a series parameter.
||Series or array.
||The number of elements; LookBack if
- The rev function generates a series and thus must be called in a fixed order in the script.
- The conv function generates a temporary series that
only keeps its content until the next conv call.
// generate reverse price series (latest prices last)
vars O = rev(series(priceOpen())),
H = rev(series(priceHigh())),
L = rev(series(priceLow())),
C = rev(series(priceClose()));