You need brackets when the if() controls more than 1 command, and I think you also have the order wrong. The trade needs Stop and Profit, so you must set them first and then enter the trade.