drawBollLine method

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

Implementation

void drawBollLine(CandleEntity lastPoint, CandleEntity curPoint,
    Canvas canvas, double lastX, double curX) {
  if (lastPoint.up != 0) {
    drawLine(lastPoint.up, curPoint.up, canvas, lastX, curX,
        this.chartColors.ma10Color);
  }
  if (lastPoint.mb != 0) {
    drawLine(lastPoint.mb, curPoint.mb, canvas, lastX, curX,
        this.chartColors.ma5Color);
  }
  if (lastPoint.dn != 0) {
    drawLine(lastPoint.dn, curPoint.dn, canvas, lastX, curX,
        this.chartColors.ma30Color);
  }
}