133538 / Publications
Forum
PositionClosePartial returns false but has retCode 10009
I want to use PositionClosePartial to cut my position in half when it gets to a scalp profit. But the PositionClosePartial call always returns false. It does not change the volume. When I check the retCode it is 10009 which I believe means success. Something is not right. I added a few debug