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)

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

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

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