|
Special functions return an array or a number according to the context.
They are data functions like Date, Time, Open, High, Low, Close, Volume, OpenInt, DbValue, plus all indicator's functions (also the user defined one).
All these functions return (or represent) an array. Let's see a simple example:
MoveAv(Close, 10)
The function MoveAv calculates the Moving average, its first argument has to be an historical series of data. In this case the historical series is represented by "Close" which in this context returns an array with all close of periods being elaborated.
In other contexts the functions Close will return a number, which in this case represent the close value of the period being elaborated at a given time.
In the following example:
A = Close * 10
"Close" is not an array any more, but a close of the period being elaborated (i.e. a number).
|