Hi

When submitting a StopMarketOrder, how to set the stop loss and profit target? 

def buyStopOder(self, current_price, symbol, quantity, stopPrice, time, tag):
newTicket = self.StopMarketOrder(symbol, float(quantity), d.Decimal(stopPrice), tag)
self.openStopMarketOrders.append(newTicket)
self.Log("[buyStopOder]: ({0}, {1}, {2}, {3}, {4})".format(current_price, symbol, quantity, stopPrice, time, tag))

 If a StopMarketOrder does not get filled, will it expire automatically after a certain period of time?

Thanks