Support wrote:
Hi,
The IEngine does not contain closed orders, please use the IHistory.
How about a getOrderById() being accessible from IHistory?
Currently there exists a getOrdersHistory method:
public List<IOrder> getOrdersHistory(Instrument i, long l, long l1)
Would it not be more efficient to provide an order ID to getOrdersHistory (or getOrderHistoryById) rather than iterating over a list to find the order, find that the list does not contain the desired order - increase the lookback, repeat...?
Thank you Dukascopy support for considering this request.