i don't know how to orderclose

 
// check if lines have crossed
   if( ma7 > ma14 && ma7 > ma21  && ma7 > ma49 && ma7 > ma70 ) siCurrentDirection = 1; //up
   if(ma7 < ma14 && ma7 < ma21  && ma7 < ma49 && ma7 < ma70  ) siCurrentDirection = 2; //down

     
   if( ma7 > ma70 ) OrderClose(OrderTicket(),OrderLots(),Bid,3,White);
    
   if(  ma7 < ma70 )  OrderClose(OrderTicket(),OrderLots(),Ask,3,White);
i wirte this. but i don't know how to do orderclose
 
phipho:
i wirte this. but i don't know how to do orderclose
Read the documentation,  OrderClose()  OrderTicket()  OrderLots()  did  you select your order using OrderSelect()  ?