I want to get the total profit of closed orders. the code is below:
for (IOrder order: history.getOrdersHistory(instrument, HistoryCheckStart,tick.getTime())) {
label=order.getLabel();
if(label.startsWith("magic111")) res=res+order.getProfitLossInAccountCurrency();
}
In the last week, these code works well, but in this week, it got wrong results. Is there something wrong with my code or Is this another new bug?
