Tutorials icon indicating copy to clipboard operation
Tutorials copied to clipboard

Mistake in covered call option tutorial backtest

Open LouisSzeto opened this issue 4 years ago • 0 comments
trafficstars

From community thread: https://www.quantconnect.com/forum/discussion/12504/covered-call-tutorial-mistake-quantconnect-com-tutorials-applied-options-covered-call/p1

The first embedded backtest was having a logic error on buying a covered call option instead of selling. The line self.MarketOrder(self.call, 1) should be self.MarketOrder(self.call, -1)

LouisSzeto avatar Oct 22 '21 15:10 LouisSzeto