Option Strategies
Bear Call Spread
Introduction
Bear call spread, also known as short call spread, consists of selling an ITM call and buying an OTM call. Both calls have the same underlying Equity and the same expiration date. The ITM call serves as a hedge for the OTM call. The bear call spread profits from a drop in underlying asset price.
Implementation
Follow these steps to implement the bear call spread strategy:
- In the
Initialize
initialize
method, set the start date, end date, cash, and Option universe. - In the
OnData
on_data
method, select the expiration and strikes of the contracts in the strategy legs. - In the
OnData
on_data
method, select the contracts and place the orders.
private Symbol _symbol; public override void Initialize() { SetStartDate(2017, 2, 1); SetEndDate(2017, 3, 5); SetCash(500000); UniverseSettings.Asynchronous = true; var option = AddOption("GOOG", Resolution.Minute); _symbol = option.Symbol; option.SetFilter(universe => universe.IncludeWeeklys().CallSpread(30, 5)); }
def initialize(self) -> None: self.set_start_date(2017, 2, 1) self.set_end_date(2017, 3, 5) self.set_cash(500000) self.universe_settings.asynchronous = True option = self.add_option("GOOG", Resolution.MINUTE) self._symbol = option.symbol option.set_filter(lambda universe: universe.include_weeklys().call_spread(30, 5))
The CallSpread
call_spread
filter narrows the universe down to just the two contracts you need to form a bear call spread.
public override void OnData(Slice slice) { if (Portfolio.Invested || !slice.OptionChains.TryGetValue(_symbol, out var chain)) { return; } // Select the call Option contracts with the furthest expiry var expiry = chain.Max(x => x.Expiry); var calls = chain.Where(x => x.Expiry == expiry && x.Right == OptionRight.Call); if (calls.Count() == 0) return; // Select the ITM and OTM contract strike prices from the remaining contracts var strikes = calls.Select(x => x.Strike).ToList(); var otmStrike = strikes.Max(); var itmStrike = strikes.Min();
def on_data(self, slice: Slice) -> None: if self.portfolio.invested: return # Get the OptionChain chain = slice.option_chains.get(self._symbol, None) if not chain: return # Select the call Option contracts with the furthest expiry expiry = max([x.expiry for x in chain]) calls = [i for i in chain if i.expiry == expiry and i.right == OptionRight.CALL] if not calls == 0: return # Select the ITM and OTM contract strike prices from the remaining contracts strikes = [x.strike for x in calls] otm_strike = max(strikes) itm_strike = min(strikes)
Approach A: Call the OptionStrategies.BearCallSpread
OptionStrategies.bear_call_spread
method with the details of each leg and then pass the result to the Buy
buy
method.
var optionStrategy = OptionStrategies.BearCallSpread(_symbol, itmStrike, otmStrike, expiry); Buy(optionStrategy, 1);
option_strategy = OptionStrategies.bear_call_spread(self._symbol, itm_strike, otm_strike, expiry) self.buy(option_strategy, 1)
Approach B: Create a list of Leg
objects and then call the Combo Market Ordercombo_market_order, Combo Limit Ordercombo_limit_order, or Combo Leg Limit Ordercombo_leg_limit_order method.
var itmCall = calls.Single(x => x.Strike == itmStrike); var otmCall = calls.Single(x => x.Strike == otmStrike); var legs = new List<Leg>() { Leg.Create(itmCall.Symbol, -1), Leg.Create(otmCall.Symbol, 1) }; ComboMarketOrder(legs, 1);
itm_call = [x for x in calls if x.strike == itm_strike][0] otm_call = [x for x in calls if x.strike == otm_strike][0] legs = [ Leg.create(itm_call.symbol, -1), Leg.create(otm_call.symbol, 1) ] self.combo_market_order(legs, 1)
Strategy Payoff
The bear call spread is a limited-reward-limited-risk strategy. The payoff is
$$ \begin{array}{rcll} C^{OTM}_T & = & (S_T - K^{OTM})^{+}\\ C^{ITM}_T & = & (S_T - K^{ITM})^{+}\\ P_T & = & (C^{OTM}_T - C^{ITM}_T + C^{ITM}_0 - C^{OTM}_0)\times m - fee\\ \end{array} $$ $$ \begin{array}{rcll} \textrm{where} & C^{OTM}_T & = & \textrm{OTM call value at time T}\\ & C^{ITM}_T & = & \textrm{ITM call value at time T}\\ & S_T & = & \textrm{Underlying asset price at time T}\\ & K^{OTM} & = & \textrm{OTM call strike price}\\ & K^{ITM} & = & \textrm{ITM call strike price}\\ & P_T & = & \textrm{Payout total at time T}\\ & C^{ITM}_0 & = & \textrm{ITM call value at position opening (debit paid)}\\ & C^{OTM}_0 & = & \textrm{OTM call value at position opening (credit received)}\\ & m & = & \textrm{Contract multiplier}\\ & T & = & \textrm{Time of expiration} \end{array} $$The following chart shows the payoff at expiration:
The maximum profit is the net credit you receive from opening the trade, $C^{ITM}_0 - C^{OTM}_0$. If the price declines, both calls expire worthless.
The maximum loss is $K^{OTM} - K^{ITM} + C^{ITM}_0 - C^{OTM}_0$, which occurs when the underlying price is above the strike prices of both call Option contracts.
If the Option is American Option, there is a risk of early assignment on the contract you sell.
Example
The following table shows the price details of the assets in the algorithm:
Asset | Price ($) | Strike ($) |
---|---|---|
OTM call | 26.90 | 1197.50 |
ITM call | 57.80 | 1125.00 |
Underlying Equity at expiration | 1078.92 | - |
Therefore, the payoff is
$$ \begin{array}{rcll} C^{OTM}_T & = & (S_T - K^{OTM})^{+}\\ & = & (1078.92-1197.50)^{+}\\ & = & 0\\ C^{ITM}_T & = & (S_T - K^{ITM})^{+}\\ & = & (1078.92-1125.00)^{+}\\ & = & 0\\ P_T & = & (C^{OTM}_T - C^{ITM}_T + C^{ITM}_0 - C^{OTM}_0)\times m - fee\\ & = & (0-0+57.80-26.90)\times100-1.00\times2\\ & = & 3088\\ \end{array} $$So, the strategy profits $3,088.
The following algorithm implements a bear call spread Option strategy: