Strategy Library

Option Expiration Week Effect

Introduction

The expiration date for an options contract is the time when the contract is no longer valid. The expiration date for listed stock options in the United States is usually the third Friday of the contract month, which is the month when the contract expires. When that Friday falls on a holiday, the expiration date is on Thursday immediately before the third Friday. The options expiration week is a week before options expiration.

During option-expiration weeks, a reduction occurs in option open interest as the near-term options approach their expiration and then expire. According to a research from Chris and Licheng Returns and option activity over the option-expiration week for S&P 100 stocks, Large-cap stocks with actively traded options tend to have higher average weekly returns during option-expiration weeks. In this algorithm, we'll use the real market data to explore the option expiration week effect.

Method

S&P 100 index includes 102 leading U.S. stocks with exchange-listed options. The constituents represent almost 51% of the market capitalization of the U.S. equity market. Here we trade the S&P 100 index ETF as a portfolio of U.S. large-cap stocks.

In the next step, we add the options to get their expiration dates. The range of expiration dates should bigger enough to include the the contract which expires in this month.

def Initialize(self):
    self.SetStartDate(2007, 1, 1)
    self.SetEndDate(2018, 8, 1)
    self.SetCash(10000)
    self.AddEquity("OEF", Resolution.Minute)
    option = self.AddOption("OEF")
    option.SetFilter(-3, 3, timedelta(0), timedelta(days = 60))
    self.SetBenchmark("OEF")

To get a list of expiration dates from the contracts in the current option chain, we can use TradingCalendar object. It allows us to filter the calendar days by the type TradingDayType.OptionExpiration and the start as well as the end date. The expiry at the top of the list is the most recent expiration date.

The long position is opened at the start of the expiration week. Therefore, we use the scheduled event to fire the rebalance method every Monday. If the current Monday is in the expiration week, we long the S&P 100 index ETF.

def Rebalance(self):
    calendar = self.TradingCalendar.GetDaysByType(TradingDayType.OptionExpiration, self.Time, self.EndDate)
    expiries = [i.Date for i in calendar]
    if len(expiries) == 0: return
    self.lastest_expiry = expiries[0]

    if (self.lastest_expiry - self.Time).days <= 5:
        self.SetHoldings("OEF", 1)

The algorithm stays in cash during days out of the options expiration week.

def OnData(self, slice):
    if self.Time.date() == self.lastest_expiry.date():
        self.Liquidate()

Algorithm

You can also see our Documentation and Videos. You can also get in touch with us via Chat.

Did you find this page Helpful ?