Return the Value of TP and SL

 

Is there any MQL5 code to return the finance value (money) of TP and SL position?

 
Yes.
 
Marco vd Heijden:
Yes.

Ok, but is there a formule or I need to write a code?

 
double profit;
if(!OrderCalcProfit(ORDER_TYPE_BUY,_Symbol,lots,price_open,price_close,profit) Print("error: ",GetLastError());
Returns the profit/loss in account's currency. And price_close should be your take profit or stop loss price.
Reason: