MQL4参考 交易函数 OrderStopLoss

OrderStopLoss

Returns stop loss value of the currently selected order.

double  OrderStopLoss();

Returned value

Stop loss value of the currently selected order.

Note

The order must be previously selected by the OrderSelect() function.

Example:

  if(OrderSelect(ticket,SELECT_BY_POS)==true)
    Print("Stop loss value for the order 10 "OrderStopLoss());
  else
    Print("OrderSelect failed error code is",GetLastError());