protected void processTrade(String orderId) {
try {
Iterator<ITrade> tradeIterator = executionService.getTrades().descendingIterator();
while (tradeIterator.hasNext()) {
ITrade trade = tradeIterator.next();
if (trade.getOrder() != null && trade.getOrder().getId().equals(orderId)) {
TradePoint tradePoint = new TradePoint(trade.getExecutionTime(), trade);
if (outputSeries != null) {
outputSeries.insertFromTail(tradePoint);
}
break;
}