Move stop to breakeven

 

Could someone please tell me why the below listed code will not change the stoploss to = my Entry price when breakeven pips are reached?

if(Bid-OrderOpenPrice()==Point*BreakEven)
{
OrderSelect(BuyTicket,SELECT_BY_TICKET);
OrderModify(BuyTicket,OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit() - TotalProfit,0);
}

Thanks

 
Watch your log for potential errors.
Reason: