... have I hold on a strategy-variable of type IOrder ... ... is it possible to check equality of all orders with '==' ...
At the moment I'm iterating over all orders (think that I get all orders of my account, from alle strategies, and all handmade chart-orders, is this correct?) and do the check with '=='.
Is this recommended?
Thx DT
API Support
Post subject: Re: How differentiate strategy orders and orders opened manu
At the moment I'm iterating over all orders (think that I get all orders of my account, from alle strategies, and all handmade chart-orders, is this correct?)
Yes it is correct.
DarthTrader2 wrote:
and do the check with '=='. Is this recommended?
To compare objects use the Object equals() method:
if (order1.equals(order2)) { ... }
You can add the strategy name to the order label, and the parse label and compare.