public double[][] readData() {


        String date;
        double open;
        int volume;
        double yesterday = 0.0;
        String[] back;

        int dataPointer = 0;

        try {
            BufferedReader in = new BufferedReader(new FileReader("input1.txt"));
            String zeile = null;
            while ((zeile = in.readLine()) != null) {
                // System.out.println(zeile);
                back = zeile.split(",");
                date = back[0].substring(1, 11);
                open = Double.valueOf(back[1]);
                volume = Integer.valueOf(back[2]);

                data[dataPointer][0] = open;
                data[dataPointer][5] = volume;
                data[dataPointer][1] = yesterday;
                yesterday = open;
                dataPointer++;
               
            }
        } catch (IOException e) {

            e.printStackTrace();
        }
        //protokoll();

        for (int i = 20; i < data.length; i++) {
            data[i][3] = (data[i][0] / data[i - 5][0]) - 1;
            data[i][4] = (data[i][0] / data[i - 20][0]) - 1;
        }

        yesterday = data[0][0];

        for (int i = 1; i < data.length - 1; i++) {
            data[i][1] = (data[i][0] / yesterday) - 1;
            yesterday = data[i][0];
            data[i][0] = (data[i + 1][0] / data[i][0]) - 1;

            if (i > 5) {
                data[i][2] = data[i - 5][1];
            }

        }

        for (int i = 0; i < data.length - 1 ; i++) {
        	data[i][5] = data[i][5] / 100000000;
        }
        
        //System.out.println("-------------------------");
       // protokoll();

        double[][] temp = new double[data.length - 21][6];

        for (int i = 20, j = 0; j < temp.length; i++, j++) {
            temp[j] = data[i];
        }

        data = temp;
        
              
        //protokoll();

        return data;
    }