The error seems at first to be caused by the demo server. A bug? I connected to simulation and I got in this strange situation of a partial target fill, 9 contracts out of 10 filled and the rest left unfilled although above the target.
I connected the debugger to check the target object and everything seems ok. I have a similar situation happening with the stop.
I am reporting both pictures above. Is it a known issue with the Demo server . I am using a modified version of the ManagedRithmicIBFriendlyExample.
Looking at the behavior of the variables it appears that I could easily close the positions from the strategy itself when this situation occurs but I am not coding it yet because it appears to be purely an issue with the server.
Best
Gio
I attached the debugger after seeing this and this is the target iOrder Object
Later I had the same issue with the stop loss and here it is the picture of the phenomena

Comment