Name

Ref — Reference past/future values of the array

Synopsis

Ref (array,
  period = 0);

Returns

ARRAY

Parameters

Name Type Default Description
array array
period array_or_number 0

Description

This function is inspired by AmiBroker function: www.amibroker.com/guide/afl/ref.html

Difference from AmiBroker: The periods parameter can NOT be time-variant (array). It have to be a constant.

Reference past/future values of the array