ShiftedRight
 

Short Name: ShiftedRight

Definition: Returns an array of values where each values of the input array are shifted by num days toward the future

Usage: shiftedRight(close,1)

Objective:
  • A shifted right array is an effective way, for instance, to retrieve an array of the previous close
  • Returns an array of values.

Note:
  • Because the curve is shifted to the right, the last few values are lost
  • The first parameter must be an array

Examples:
  • shiftedRight(close,1) returns an array of previous close values
  • shiftedRight(close,14) returns an array of close 14 days ago.