MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Trading functions  OrderStopLoss

 
double OrderStopLoss( )
Returns stop loss value for the currently selected order.
Note: The order must be previously selected by the OrderSelect() function.
Sample:
  if(OrderSelect(ticket,SELECT_BY_POS)==true)
    Print("Stop loss value for the order 10 ", OrderStopLoss());
  else
    Print("OrderSelect failed error code is",GetLastError());