论坛

[Help] What's the reason that some order can not be closed by OrderClose(), when using "OrderSelect(i,SELECT_BY_POS,MODE_TRADES); "

I need someone to help me to find the mistake in the code segment below, the problem is: when the order which is OP_BUY found, there's always some order can not be closed by OrderClose(), shouldn't I use the "OrderSelect(i,SELECT_BY_POS,MODE_TRADES); " statement here ? void CloseOrder(int closetype)