code: private Decimal calculateSar(int index) {
          Decimal previousSar = getValue(index - 1);
          return extremePoint.multipliedBy(acceleration)
                  .plus(Decimal.ONE.minus(acceleration).multipliedBy(previousSar));
      }
docs: Calculates the SAR.
  @param index the tick index
  @return the SAR