MQL4 Reference
Trading functions
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());
|
|
|