drawMaLine method
void
drawMaLine(
- CandleEntity lastPoint,
- CandleEntity curPoint,
- Canvas canvas,
- double lastX,
- 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));
}
}
}