I just started using QuantConnect recently, and I must say it's one of the best cloud platform I've used. However I'm finding it difficult to understand the SMarketOrder stop order. Let's say I'm holding 500 shares of SPY, and I want to close the position immediately SPY reaches a particular price

  1. self.StopMarketOrder(self.spy.Symbol, -500, 0.90 * self.Securities[self.spy.Symbol].Close)

When the stop price is triggered, does it close the position or it SELL/SHORT it. ?

 

 

Author

Obimba Smart Chukwunenye

July 2022