Break even point code...

 
In my EA I'd like to add a comment on the upper left corner of the chart that shows what the Breakeven value is..... Where the currency needs to go to be out of the red and into the black.... I'm sure I need to evaluate all the orders add the negative profits....and the offset by the current bid/ask.... Has anyone ever written this? Can anyone give me any insights??
 

hope this can help


//+------------------------------------------------------------------+
//+ Break Even |
//+------------------------------------------------------------------+
bool BreakEven(int MN)
{
int Ticket;

for(int i = OrdersTotal() - 1; i >= 0; i--)
{
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);

if(OrderSymbol() == Symbol() && OrderMagicNumber() == MN)
{
Ticket = OrderModify(OrderTicket(), OrderOpenPrice(), OrderOpenPrice(), OrderTakeProfit(), 0, Green);
if(Ticket < 0) Print("Error in Break Even : ", GetLastError());

break;
}
}

return(Ticket);
}

Reason: