TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool OrderModify ( int  ticket,
double  price,
double  stoploss,
double  takeprofit,
DateTime  expiration,
Color  arrow_color 
)

Modification of characteristics of the previously opened or pending orders

Parameters
ticketUnique number of the order ticket
priceNew open price of the pending order
stoplossNew StopLoss level
takeprofitNew TakeProfit level
expirationPending order expiration time
arrow_colorArrow color for StopLoss/TakeProfit modifications in the chart. If the parameter is missing or has CLR_NONE value, the arrows will not be shown in the chart
Returns
If the function succeeds, it returns true, otherwise false. To get the detailed error information, call the GetLastError() function.

Open price and expiration time can be changed only for pending orders. If unchanged values are passed as the function parameters,
the error 1 (ERR_NO_RESULT) will be generated.
Pending order expiration time can be disabled in some trade servers. In this case, when a non-zero value is specified in the expiration
parameter, the error 147 (ERR_TRADE_EXPIRATION_DENIED) will be generated.