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