# Stop losses sample code
stopMarketTicket = self.StopMarketOrder("SPY", -10, current_price* 0.95*0.97)
# Take profit sample code
tp1Ticket = self.LimitOrder("SPY", -5, current_price*1.05)