private void clearPosition() {
        StreamsterApiInterfaceProxy proxy = new StreamsterApiInterfaceProxy();
        Position[] positions = new Position[0];
        try {
            positions = proxy.getPositions();
        } catch (RemoteException ex) {
            Logger.getLogger(JobTradeUpGBPJPY.class.getName()).log(Level.SEVERE, null, ex);
        }

        int buyNum = 0;
        for (Position position : positions) {
            if (position.getStatus().equalsIgnoreCase("OPEN")) {
                buyNum++;
            }
        }

        if (buyNum == 0) {
            buyState = false;
        }
    }