drawMaLine method

void drawMaLine(
  1. CandleEntity lastPoint,
  2. CandleEntity curPoint,
  3. Canvas canvas,
  4. double lastX,
  5. double curX,
)

Implementation

void drawMaLine(CandleEntity lastPoint, CandleEntity curPoint, Canvas canvas,
    double lastX, double curX) {
  for (int i = 0; i < (curPoint.maValueList?.length ?? 0); i++) {
    if (i == 3) {
      break;
    }
    if (lastPoint.maValueList?[i] != 0) {
      drawLine(lastPoint.maValueList?[i], curPoint.maValueList?[i], canvas,
          lastX, curX, this.chartColors.getMAColor(i));
    }
  }
}