calculate method
Calculates the value of this indicator for the given index without caching it.
Returns the result as a T.
Implementation
@override
T calculate(int index) {
if (index == 0) {
return indicator.getValue(0);
}
final double prevValue = getValue(index - 1).quote;
return createResult(
index: index,
quote: ((indicator.getValue(index).quote - prevValue) * multiplier) +
prevValue,
);
}