MQL4参考 交易函数 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());