public void onMessage(IMessage message) throws JFException {
        if (message != null && message.getType() == IMessage.Type.ORDER_CLOSE_OK) {
            console.getOut().println("Order : " + message.getOrder().getLabel() +
                                     " " + message.getOrder().getOrderCommand() +
                                     " Pips: " + message.getOrder().getProfitLossInPips());
        }
    }