Using take-profit and stop-loss
Set both at order time; drag them on the chart afterward if you need to adjust.
Take-profit and stop-loss can be attached to an order at the moment you place it, or added afterward to an open position. Both trigger on mark price, then fill at the best available bid or ask, the same way a real exchange would execute them.
Once set, both levels appear as draggable lines directly on the chart, with the estimated PnL at each level shown next to it — useful for adjusting a stop after a trade has moved in your favor without reopening the order form.
A position without a stop-loss is not blocked by the engine, but it is the single most common reason a trade turns into a daily-loss breach that a stop would have prevented.