Hello, i would like to know if it' s possible to close a specific order through unmanaged approach. For example: if i submit an order via SubmitOrder function and after 2 minutes i submit another order on the same instrument i have 2 contracts and 2 orders in a position. i would like to close only the first order. how can i do it with unmanaged approach?
There is a function where i can see the orders that make up a position so i can discriminate an order from another?
I know that it' s possible with managed approach through EnterBuy ExitBuy etc.... but if for some reason the strategy stops(for computer crash etc...), i can't access the order for close it and i have to close it manual, so i can't close single order of the position because what i can do is close all position!