Program: 25821
Project: 25821
Buggy source:
private void initBOLLMASlipCandleStickChart(){
  this.bollmaslipcandlestickchart=(BOLLMASlipCandleStickChart)findViewById(R.id.bollmaslipcandlestickchart);
  List<LineEntity<DateValueEntity>> lines=new ArrayList<LineEntity<DateValueEntity>>();
  LineEntity<DateValueEntity> MA5=new LineEntity<DateValueEntity>();
  MA5.setTitle("String_Node_Str");
  MA5.setLineColor(Color.WHITE);
  MA5.setLineData(initMA(5));
  lines.add(MA5);
  LineEntity<DateValueEntity> MA10=new LineEntity<DateValueEntity>();
  MA10.setTitle("String_Node_Str");
  MA10.setLineColor(Color.RED);
  MA10.setLineData(initMA(10));
  lines.add(MA10);
  LineEntity<DateValueEntity> MA25=new LineEntity<DateValueEntity>();
  MA25.setTitle("String_Node_Str");
  MA25.setLineColor(Color.GREEN);
  MA25.setLineData(initMA(25));
  lines.add(MA25);
  List<LineEntity<DateValueEntity>> band=new ArrayList<LineEntity<DateValueEntity>>();
  LineEntity<DateValueEntity> LOWER=new LineEntity<DateValueEntity>();
  LOWER.setTitle("String_Node_Str");
  LOWER.setLineColor(Color.YELLOW);
  LOWER.setLineData(dv1);
  band.add(LOWER);
  LineEntity<DateValueEntity> UPPER=new LineEntity<DateValueEntity>();
  UPPER.setTitle("String_Node_Str");
  UPPER.setLineColor(Color.CYAN);
  UPPER.setLineData(dv2);
  band.add(UPPER);
  bollmaslipcandlestickchart.setAxisXColor(Color.LTGRAY);
  bollmaslipcandlestickchart.setAxisYColor(Color.LTGRAY);
  bollmaslipcandlestickchart.setLatitudeColor(Color.GRAY);
  bollmaslipcandlestickchart.setLongitudeColor(Color.GRAY);
  bollmaslipcandlestickchart.setBorderColor(Color.LTGRAY);
  bollmaslipcandlestickchart.setLongitudeFontColor(Color.WHITE);
  bollmaslipcandlestickchart.setLatitudeFontColor(Color.WHITE);
  bollmaslipcandlestickchart.setLatitudeNum(5);
  bollmaslipcandlestickchart.setLongitudeNum(3);
  bollmaslipcandlestickchart.setMaxValue(1200);
  bollmaslipcandlestickchart.setMinValue(200);
  bollmaslipcandlestickchart.setDisplayFrom(10);
  bollmaslipcandlestickchart.setDisplayNumber(30);
  bollmaslipcandlestickchart.setMinDisplayNumber(5);
  bollmaslipcandlestickchart.setZoomBaseLine(IZoomable.ZOOM_BASE_LINE_CENTER);
  bollmaslipcandlestickchart.setDisplayLongitudeTitle(true);
  bollmaslipcandlestickchart.setDisplayLatitudeTitle(true);
  bollmaslipcandlestickchart.setDisplayLatitude(true);
  bollmaslipcandlestickchart.setDisplayLongitude(true);
  bollmaslipcandlestickchart.setBackgroundColor(Color.BLACK);
  bollmaslipcandlestickchart.setDataQuadrantPaddingTop(5);
  bollmaslipcandlestickchart.setDataQuadrantPaddingBottom(5);
  bollmaslipcandlestickchart.setDataQuadrantPaddingLeft(5);
  bollmaslipcandlestickchart.setDataQuadrantPaddingRight(5);
  bollmaslipcandlestickchart.setAxisYTitleQuadrantWidth(50);
  bollmaslipcandlestickchart.setAxisXTitleQuadrantHeight(20);
  bollmaslipcandlestickchart.setAxisXPosition(GridChart.AXIS_X_POSITION_BOTTOM);
  bollmaslipcandlestickchart.setAxisYPosition(GridChart.AXIS_Y_POSITION_RIGHT);
  bollmaslipcandlestickchart.setLinesData(lines);
  bollmaslipcandlestickchart.setBandData(band);
  bollmaslipcandlestickchart.setStickData(new ListChartData<IStickEntity>(ohlc));
  bollmaslipcandlestickchart.setOnZoomGestureListener(new OnZoomGestureListener(){
    public void onZoom(    int zoom,    int displayFrom,    int displayNumber){
      maslipcandlestickchart.setDisplayFrom(displayFrom);
      maslipcandlestickchart.setDisplayNumber(displayNumber);
      maslipcandlestickchart.postInvalidate();
    }
  }
);
  bollmaslipcandlestickchart.setOnSlipGestureListener(new OnSlipGestureListener(){
    public void onSlip(    int direction,    int displayFrom,    int displayNumber){
      maslipcandlestickchart.setDisplayFrom(displayFrom);
      maslipcandlestickchart.setDisplayNumber(displayNumber);
      maslipcandlestickchart.postInvalidate();
    }
  }
);
  bollmaslipcandlestickchart.setOnTouchGestureListener(new OnTouchGestureListener(){
    public void onTouchUp(    PointF touchPointF,    int selectedIndex){
      maslipcandlestickchart.setTouchPoint(touchPointF);
      maslipcandlestickchart.setClickPostX(touchPointF.x);
      maslipcandlestickchart.setClickPostY(touchPointF.y);
      maslipcandlestickchart.postInvalidate();
    }
    public void onTouchMoved(    PointF touchPointF,    int selectedIndex){
      maslipcandlestickchart.setTouchPoint(touchPointF);
      maslipcandlestickchart.setClickPostX(touchPointF.x);
      maslipcandlestickchart.setClickPostY(touchPointF.y);
      maslipcandlestickchart.postInvalidate();
    }
    public void onTouchDown(    PointF touchPointF,    int selectedIndex){
      maslipcandlestickchart.setTouchPoint(touchPointF);
      maslipcandlestickchart.setClickPostX(touchPointF.x);
      maslipcandlestickchart.setClickPostY(touchPointF.y);
      maslipcandlestickchart.postInvalidate();
    }
  }
);
}

Fixed version (ground truth):
private void initBOLLMASlipCandleStickChart(){
  this.bollmaslipcandlestickchart=(BOLLMASlipCandleStickChart)findViewById(R.id.bollmaslipcandlestickchart);
  List<LineEntity<DateValueEntity>> lines=new ArrayList<LineEntity<DateValueEntity>>();
  LineEntity<DateValueEntity> MA5=new LineEntity<DateValueEntity>();
  MA5.setTitle("String_Node_Str");
  MA5.setLineColor(Color.WHITE);
  MA5.setLineData(initMA(5));
  lines.add(MA5);
  LineEntity<DateValueEntity> MA10=new LineEntity<DateValueEntity>();
  MA10.setTitle("String_Node_Str");
  MA10.setLineColor(Color.RED);
  MA10.setLineData(initMA(10));
  lines.add(MA10);
  LineEntity<DateValueEntity> MA25=new LineEntity<DateValueEntity>();
  MA25.setTitle("String_Node_Str");
  MA25.setLineColor(Color.GREEN);
  MA25.setLineData(initMA(25));
  lines.add(MA25);
  List<LineEntity<DateValueEntity>> band=new ArrayList<LineEntity<DateValueEntity>>();
  LineEntity<DateValueEntity> LOWER=new LineEntity<DateValueEntity>();
  LOWER.setTitle("String_Node_Str");
  LOWER.setLineColor(Color.YELLOW);
  LOWER.setLineData(dv1);
  band.add(LOWER);
  LineEntity<DateValueEntity> UPPER=new LineEntity<DateValueEntity>();
  UPPER.setTitle("String_Node_Str");
  UPPER.setLineColor(Color.CYAN);
  UPPER.setLineData(dv2);
  band.add(UPPER);
  bollmaslipcandlestickchart.setAxisXColor(Color.LTGRAY);
  bollmaslipcandlestickchart.setAxisYColor(Color.LTGRAY);
  bollmaslipcandlestickchart.setLatitudeColor(Color.GRAY);
  bollmaslipcandlestickchart.setLongitudeColor(Color.GRAY);
  bollmaslipcandlestickchart.setBorderColor(Color.LTGRAY);
  bollmaslipcandlestickchart.setLongitudeFontColor(Color.WHITE);
  bollmaslipcandlestickchart.setLatitudeFontColor(Color.WHITE);
  bollmaslipcandlestickchart.setLatitudeNum(5);
  bollmaslipcandlestickchart.setLongitudeNum(3);
  bollmaslipcandlestickchart.setMaxValue(1200);
  bollmaslipcandlestickchart.setMinValue(200);
  bollmaslipcandlestickchart.setDisplayFrom(10);
  bollmaslipcandlestickchart.setDisplayNumber(30);
  bollmaslipcandlestickchart.setMinDisplayNumber(5);
  bollmaslipcandlestickchart.setZoomBaseLine(IZoomable.ZOOM_BASE_LINE_CENTER);
  bollmaslipcandlestickchart.setDisplayLongitudeTitle(true);
  bollmaslipcandlestickchart.setDisplayLatitudeTitle(true);
  bollmaslipcandlestickchart.setDisplayLatitude(true);
  bollmaslipcandlestickchart.setDisplayLongitude(true);
  bollmaslipcandlestickchart.setBackgroundColor(Color.BLACK);
  bollmaslipcandlestickchart.setDataQuadrantPaddingTop(5);
  bollmaslipcandlestickchart.setDataQuadrantPaddingBottom(5);
  bollmaslipcandlestickchart.setDataQuadrantPaddingLeft(5);
  bollmaslipcandlestickchart.setDataQuadrantPaddingRight(5);
  bollmaslipcandlestickchart.setAxisYTitleQuadrantWidth(50);
  bollmaslipcandlestickchart.setAxisXTitleQuadrantHeight(20);
  bollmaslipcandlestickchart.setAxisXPosition(GridChart.AXIS_X_POSITION_BOTTOM);
  bollmaslipcandlestickchart.setAxisYPosition(GridChart.AXIS_Y_POSITION_RIGHT);
  bollmaslipcandlestickchart.setLinesData(lines);
  bollmaslipcandlestickchart.setBandData(band);
  bollmaslipcandlestickchart.setStickData(new ListChartData<IStickEntity>(ohlc));
  bollmaslipcandlestickchart.setOnZoomGestureListener(new OnZoomGestureListener(){
    public void onZoom(    int zoom,    int displayFrom,    int displayNumber){
      maslipcandlestickchart.setDisplayFrom(displayFrom);
      maslipcandlestickchart.setDisplayNumber(displayNumber);
      maslipcandlestickchart.postInvalidate();
    }
  }
);
  bollmaslipcandlestickchart.setOnSlipGestureListener(new OnSlipGestureListener(){
    public void onSlip(    int direction,    int displayFrom,    int displayNumber){
      maslipcandlestickchart.setDisplayFrom(displayFrom);
      maslipcandlestickchart.setDisplayNumber(displayNumber);
      maslipcandlestickchart.postInvalidate();
    }
  }
);
  bollmaslipcandlestickchart.setOnTouchGestureListener(new OnTouchGestureListener(){
    public void onTouchUp(    PointF touchPointF,    int selectedIndex){
      maslipcandlestickchart.setTouchPoint(touchPointF);
      maslipcandlestickchart.postInvalidate();
    }
    public void onTouchMoved(    PointF touchPointF,    int selectedIndex){
      maslipcandlestickchart.setTouchPoint(touchPointF);
      maslipcandlestickchart.postInvalidate();
    }
    public void onTouchDown(    PointF touchPointF,    int selectedIndex){
      maslipcandlestickchart.setTouchPoint(touchPointF);
      maslipcandlestickchart.postInvalidate();
    }
  }
);
}