getValue method

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

Value of the indicator for the given index.

Implementation

@override
T getValue(int index) {
  final IndicatorOHLC entry = entries[index];
  return createResult(
    index: index,
    quote: (entry.open + entry.high + entry.low + entry.close) / 4,
  );
}