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