Stop-loss and Take-profit are actually pending orders that trigger when the price passes certain levels. When placing such orders, the trader limits his profit and loss in advance.