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 S⊤MarketOrder 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
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. ?
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!