OrderCloseBy() 怎么用

 
谁能举个例子说明下,感激不尽
 
if(OrderCloseBy(ticket1,ticket2,CLR_NONE) {
   Alert("closed");
else {
   Alert("didn't close!");
}

ticket1 是买的, ticket2 是卖的