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