OrderTakeProfit - Trade Functions - MQL4 Reference

MQL4 Reference Trade Functions OrderTakeProfit

OrderTakeProfit

Returns take profit value of the currently selected order.

double  OrderTakeProfit();

Returned value

Take profit value of the currently selected order.

Note

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

Example:

  if(OrderSelect(12, SELECT_BY_POS)==true)
    Print("Order #",OrderTicket()," profit: "OrderTakeProfit());
  else
    Print("OrderSelect() returns error - ",GetLastError());