TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool OrderCloseBy ( int  ticket,
int  opposite,
Color  color 
)

Closes an opened order by another opposite opened order

Parameters
ticketUnique number of the order ticket
oppositeUnique number of the opposite order ticket.
colorColor of the closing arrow on the chart. If the parameter is missing or has CLR_NONE value closing arrow will not be drawn on the chart.
Returns
Returns true if successful, otherwise false. To get additional error information, one has to call the GetLastError() function.