calculate method

  1. @override
T calculate(
  1. int index
)
override

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) {
  final double lineQuote = (_highestValueIndicator.getValue(index).quote +
          _lowestValueIndicator.getValue(index).quote) /
      2;
  return createResult(index: index, quote: lineQuote);
}