The platform provides a special shortcut for setting break-even exit on open trades. Rather than having to inspect the long/short direction of a trade and the current price, and then setting either the s/l or t/p to the open price, you can instead use
// Sets either the s/l or t/p to the open price, depending whether in profit or loss
Framework.SendOrder({
orderId: "T12345",
tradingAction: FXB.OrderTypes.BREAKEVEN
}, function (MsgResult) {
…
});