Script: ShiftedLeft | Mastock Help



Short Name: ShiftedLeft

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

Usage: shiftedLeft(array,number)

Objective:
  • A shifted left average can sometimes give a better visual on prices evolution
  • Returns an array of values.

Note:
  • Because the curve is shifted to the left, the last few values are irrelevant and not displayed

Examples:
  • shiftedLeft(avg(20),14) returns a mobile average shifted toward the past by 14 days