Option Strategies
Short Straddle
Introduction
A Short Straddle consists of selling a call and a put, where both contracts have the same underlying asset, strike price (normally at-the-money), and expiration date. If you enter a short straddle, you bet that the underlying asset will remain relatively stable and not experience significant price movements before the Option expires.
Implementation
Follow these steps to implement the short straddle 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 date and strike price 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, 4, 1); SetEndDate(2017, 6, 30); SetCash(100000); UniverseSettings.Asynchronous = true; var option = AddOption("GOOG"); _symbol = option.Symbol; option.SetFilter(universe => universe.IncludeWeeklys().Straddle(30)); }
def initialize(self) -> None: self.set_start_date(2017, 4, 1) self.set_end_date(2017, 6, 30) self.set_cash(100000) self.universe_settings.asynchronous = True option = self.add_option("GOOG") self._symbol = option.symbol option.set_filter(lambda universe: universe.include_weeklys().straddle(30))
The Straddle
straddle
filter narrows the universe down to just the two contracts you need to form a short straddle.
public override void OnData(Slice slice) { if (Portfolio.Invested || !slice.OptionChains.TryGetValue(_symbol, out var chain)) { return; } // Find ATM options with the nearest expiry var expiry = chain.Min(contract => contract.Expiry); var strike = chain.OrderBy(contract => Math.Abs(contract.Strike - chain.Underlying.Price)).First().Strike;
def on_data(self, slice: Slice) -> None: if self.portfolio.invested: return chain = slice.option_chains.get(self._symbol, None) if not chain: return # Find ATM options with the nearest expiry expiry = min([x.expiry for x in chain]) strike = sorted(chain, key=lambda x: abs(x.strike - chain.underlying.price))[0].strike
Approach A: Call the OptionStrategies.ShortStraddle
OptionStrategies.short_straddle
method with the details of each leg and then pass the result to the Buy
buy
method.
var shortStraddle = OptionStrategies.ShortStraddle(_symbol, contracts[0].Strike, expiry); Buy(shortStraddle, 1);
short_straddle = OptionStrategies.short_straddle(self._symbol, contracts[0].strike, expiry) self.buy(short_straddle, 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 contracts = chain.Where(contract => contract.Expiry == expiry && contract.Strike == strike); if (contracts.Length < 2) return; var atmCall = contracts.Single(x => x.Right == OptionRight.Call); var atmPut = contracts.Single(x => x.Right == OptionRight.Put); var legs = new List<Leg>() { Leg.Create(atmCall.Symbol, -1), Leg.Create(atmPut.Symbol, -1) }; ComboMarketOrder(legs, 1);
contracts = [x for x in chain if x.expiry == expiry and x.strike == strike] if len(contracts) < 2: return atm_call = [x for x in contracts if x.right == OptionRight.CALL][0] atm_put = [x for x in contracts if x.right == OptionRight.PUT][0] legs = [ Leg.create(atm_call.symbol, -1), Leg.create(atm_put.symbol, -1) ] self.combo_market_order(legs, 1)
Strategy Payoff
The payoff of the strategy is
$$ \begin{array}{rcll} C^{ATM}_T & = & (S_T - K^{C})^{+}\\ P^{ATM}_T & = & (K^{P} - S_T)^{+}\\ P_T & = & (-C^{ATM}_T - P^{ATM}_T + C^{ATM}_0 + P^{ATM}_0)\times m - fee \end{array} $$ $$ \begin{array}{rcll} \textrm{where} & C^{ATM}_T & = & \textrm{ATM call value at time T}\\ & P^{ATM}_T & = & \textrm{ATM put value at time T}\\ & S_T & = & \textrm{Underlying asset price at time T}\\ & K^{C} & = & \textrm{ATM call strike price}\\ & K^{P} & = & \textrm{ATM put strike price}\\ & P_T & = & \textrm{Payout total at time T}\\ & C^{ATM}_0 & = & \textrm{ATM call value at position opening (debit paid)}\\ & P^{ATM}_0 & = & \textrm{ATM put value at position opening (debit paid)}\\ & m & = & \textrm{Contract multiplier}\\ & T & = & \textrm{Time of expiration} \end{array} $$The following chart shows the payoff at expiration:
The maximum profit is $C^{ATM}_0 + P^{ATM}_0$. It occurs when the price of the underlying asset remains exactly at the strike price upon expiration.
The maximum loss is unlimited if the underlying price rises to infinity or drops to zero at expiration.
If the Option is American Option, there is a risk of early assignment on the contracts you sell.
Example
The following table shows the price details of the assets in the algorithm at Option expiration (2017-05-20):
Asset | Price ($) | Strike ($) |
---|---|---|
Call | 19.6 | 835.00 |
Put | 21.4 | 835.00 |
Underlying Equity at early (2017-05-15) call assignment | 932.22 | - |
Underlying Equity at expiration | 934.01 | - |
Therefore, the payoff is
$$ \begin{array}{rcll} C^{ATM}_T & = & (S_T - K^{C})^{+}\\ & = & (934.01-835.00)^{+}\\ & = & 99.01\\ P^{ATM}_T & = & (K^{P} - S_T)^{+}\\ & = & (835.00-934.01)^{+}\\ & = & 0\\ P_T & = & (-C^{ATM}_T - P^{ATM}_T + C^{ATM}_0 + P^{ATM}_0)\times m - fee\\ & = & (-99.01-0+19.6+21.4)\times 100 - 2.00\\ & = & -5803 \end{array} $$So, the strategy loses $5,277. The early assigment doesn't influence the payoff.
The following algorithm implements a short straddle strategy: