How to place a profit-taking and stop-loss order

These red circles are profit-taking orders

These green circles are stop-loss orders