How can i caode an array only with "sell" or "buy" active orders?
Created at 02 Aug 2017, 01:04
How can i caode an array only with "sell" or "buy" active orders?
02 Aug 2017, 01:04
Hello Everyone,
I would really appreciate your help with, how to code and array with only "sell" or "buy" active orders and if is possible to compare this array with a second array which contents a different quantity of elements.
Thank you very much for your attention
IR
Spotware
02 Aug 2017, 09:29
Dear ivan-rifo,
See below a code sample on how split your active orders into two lists of Buy and Sell orders.
In order to use the List class you need to reference System.Collections.Generic namespace. See below
Regarding the comparison, which attribute of the two lists would you like to compare?
Best Regards,
cTrader Team
@Spotware