Hi Guys,
Quick question. Let's say I create a market order for a security using SetHoldings() function and immediatelly after that I create a stop market order using StopMarketOrder() function.

1) If I sell the security again using SetHoldings(security, 0). The stop order is instantly cancelled or I have to explicitly implement that?
2) If I rebalance my position and want to update the stop market order should I cancel the previous one or there already an update function?
Many thanks