about pending order

 
if i place a pending order , after a while , I want to close this pending order ,but I don't know whether this pending order is succeeded . how do I code it . ( that mean I must know trade status of pending order ,need to know pend order have been traded or not)
 
Check its OrderType(). Open trades have OP_BUY or OP_SELL values only.
 
fireflies:
Check its OrderType(). Open trades have OP_BUY or OP_SELL values only.


sorry ,I must use BUYSTOP AND SELLSTOP
 
muyuan11:
fireflies:
Check its OrderType(). Open trades have OP_BUY or OP_SELL values only.


sorry ,I must use BUYSTOP AND SELLSTOP
Correct. But when the order is executed, it becomes OP_BUY or OP_SELL.
 
fireflies:
muyuan11:
fireflies:
Check its OrderType(). Open trades have OP_BUY or OP_SELL values only.


sorry ,I must use BUYSTOP AND SELLSTOP
Correct. But when the order is executed, it becomes OP_BUY or OP_SELL.

thanks ,i see
Reason: