Skip to main content

Boxcar Trade

· 8 min read
Boxcar Trade

Introduction

We want to present the Boxcar trade, which we consider a good starting point for income strategy development. The trade was originally developed by Dan Harvey and presented multiple times by various lecturers at Aeromir Corporation.  

This article summarizes the trade specifics shown in the video. Some trade rules seem to be slightly different in the Example Trade vs. on the Trade Guidelines slides (both are presented in the video). In such cases, our analysis is based on the Example Trade.

Full disclosure: We are not affiliated, associated, authorized, or endorsed by Aeromir. The information shown in this blog post is for informational purposes only and shouldn’t be taken as investment advice.


Trade rules

Boxcar Trade Guidelines 1
Boxcar Trade Guidelines 3

Based on the entry rules shown in the video, we came up with the following trade plan:

We will be trading SPX options and entering every Thursday or Friday and keep the position open for 7 days at most. Our planned capital is $25k per 10 lot trade, and we backtest more than 3.5 years to ensure that multiple market conditions are covered: grind up (2019 and 2021), crashing (2020), and sideways (2022).

As described in the guidelines, the Boxcar trade consists of a Put Credit Spread (pcs) and a Put Debit Spread (pds) at 8 DTE expiration. The four legs of the trade are defined as follows:

pcs_short

-10 @ Strike located at 10-12 delta. (First slide, third bullet)

In MesoSim we define this with the Delta StrikeSelector:

 "Delta": "10"

pcs_long

+10 @ Strike 25 points below the pcs_short. (First slide, fourth bullet)

The relative strike can be specified using the Statement StrikeSelector:

"Statement": "leg_pcs_short_strike - 25" 

pds_long

+1 @ 1 to 3 strikes Out Of the Money. (Second slide, fourth bullet)

To calculate N strike out of the money, we need to consider that SPX has strikes defined every $5. To find the nearest strike, we divide the current SPX Price (underlying_price variable) with $5, then round it down to the nearest integer with the floor() function. Then, multiply it back by five to end up at a valid strike. Going one strike out of the money means simply subtracting the strike increment (5) from the calculation:

"Statement": "floor(underlying_price/5)*5 - 1 * 5"

pds_short

-1 @ Strike selected so that the overall position delta equals the number of lots traded (10).

To specify a strike based on Delta, we use the same strike Delta-based Strike Selector that we have used at pcs_short leg. MesoSim provides the pos_delta variable, representing the position we have built so far. At the point of evaluation, we have the pcs_short, pcs_long, and pds_long legs in the position. Therefore pos_delta represents their cumulative delta. If we would like to end up at 10 delta, we need to take the current delta accumulated so far (pos_delta), multiply it by -1 to end up at 0 delta, and add 10:

 -1 * pos_delta + 10 = 10 - pos_delta
"Delta": "10 - pos_delta"

To better understand how pds_short is calculated please refer to the Delta Hedging section of our documentation.

The full definition of the trade can be studied via the Run’s Job Definition tab.

Please refer to our documentation to get a better understanding of what each section and field represents.


Adjustments

The Boxcar trade comes with a handful of adjustment rules which are not too exact (or, in other words: somewhat discretionary). It's our experience that trades with numerous adjustment rules are much more complex to manage than slap-on/slap-off types of trades.

Therefore, we are not aiming to replicate the adjustment rules in this article fully but to develop a baseline that correctly replicates the entry. Then we will use this baseline in follow-up posts to tune and optimize the trade.


Backtest Results

Putting the trade rules into MesoSim results in the following run: https://portal.deltaray.io/backtests/b736250e-ab35-4e92-835f-47e763cc460c

Boxcar Baseline MesoSim Screenshot

Using MesoSim’s Export to OptionNet Explorer functionality, it is easy to load the run into OptionNetExplorer and validate that the simulated trade matches the original structure described in the video:

Boxcar Structure in OptionNet Explorer

Analysis

This section will analyze the backtest result and identify optimization opportunities to improve performance and reduce downside risk. On the OptionNet Explorer’s chart, we can see that we have relatively flat T+x lines if the price of the underlying remains the same or goes higher. In case of a large down move, the structure will gain a significant amount of delta.

Equity Graph

The (log-based) equity graph shows that the strategy outperforms the SPX buy-and-hold strategy. It is easy to notice that this strategy suffers during the COVID crash and doesn’t perform well when the market moves sideways (2022). 

Boxcar Equity Graph
Potential optimization

Certain market regimes can be identified (and therefore filtered) using the underlyings’ IV Rank or Percentile.

Metrics

Based on the Sharpe ratio of 0.97, we can conclude that the trade performs better than the simple buy and hold of SPX for the given period in terms of risk-adjusted return. Note that a Sharpe ratio above 1 can be considered adequate; above 1.5 is good, while above 2.5 can be considered excellent.

The CAGR and the Max Drawdown are higher than the buy and hold strategy. The Max Drawdown for this slap-on/slap-off version of Boxcar is almost -50%. We believe that with proper adjustments, the Max Drawdown would improve.

Boxcar Metrics

Greeks

Delta

Delta describes the rate of change between the underlying and the option’s price.

The Account Greeks chart confirms that the 10 lot trade is opened at 10 delta, which the video suggests. The delta values deviating far from the initial value are happening due to notable moves on the underlying. The more SPX moves in one direction, the further it drives our delta from the starting point.

Boxcar Delta
Potential optimization

A delta-neutral strategy is beneficial as the underlying price moves will not affect the options trade.

Gamma

Gamma (the second-order greek describing the rate of change of Delta as a function of the underlying moves) shows that we are moderately exposed to price changes in the underlying. It would benefit us to keep Gamma under control and as close to 0 as possible. 

Boxcar Gamma
Potential optimization

Having Gamma closer to zero would help our strategy to keep its delta close to the initiation range.

Theta

Theta describes the dollar amount we are receiving (or paying) on a daily basis to keep the structure open. Positive Theta means that we are getting paid by holding the position.

This is the core of every income trade.

In the case of Boxcar, we see that the majority of the time, we have positive Theta, but there are times when Theta turns negative. 

Boxcar Theta
Potential optimization

It is not beneficial to have negative Theta in an income trade. We should consider closing the trade as soon as it goes into negative Theta.

Vega

Vega represents how the option price changes as a function of the underlying volatility. Generally, income trades are negative vega (and positive theta), and that’s exactly what we see here. 

Boxcar Vega

Summary

success

We have taken Boxcar, an income trade that can be modeled in MesoSim using its powerful ScriptEngine. At the time of writing, other option-focused backtesters (from alpha to omega) are not flexible enough to model this trade.

We analyzed the trade using OptionNet Explorer, MesoSim’s Equity Graph, Portfolio metrics, and Greeks charts and identified optimization opportunities, which we will cover in the next episode of the series.

Due to the large drawdowns we do not recommend trading the Boxcar trade as described in this post.

In the follow-up post, we optimized the trade; please find the Boxcar-NG review here.

MesoSim v2.1: Events Export, ThetaEngine Strategy Template

· One min read
Screenshot-2022-10-03-at-8.57.17
We wanted to let you know that a batch of new functionalities is now available with MesoSim 2.1.

The new release includes the following features (and some bugfixes):

This was the first time David Sun's ThetaEngine strategy was made available in an automated backtester. If you want to know more about David and our implementation of his strategy, read our blog post!

Theta Engine

· 2 min read
Screenshot-2022-10-03-at-8.53.36
success

We have been working closely with David Sun, the Host of the famous The Trade Busters Podcast (and notably a TastyTrade RisingStar), to bring his trade to MesoSim. 

So far, his unique approach of credit targeted dynamic sizing was impossible to model in the current backtesting offerings. With a tiny tweak in MesoSim’s ScriptEngine, we enabled David to bring his strategy to MesoSim.

David’s ThetaEngine is well described in his podcasts, and the trade details can also be studied via his Companion website.

You can find the backtest results of Theta Engine for 2021 here: https://portal.deltaray.io/backtests/d8e6c6e8-8654-4c8e-85b1-af0bf4e21b27

Please note that the above implementation is a limited version compared to what David has shared with us in Slack:

  • He is creating a series of backtests in his studies, each targeting a different day of the week for trading. With such an approach, he can blend all the results and better model his live trading approach.
  • We have limited our backtest period to 2021 for faster iteration. His shared backtests are running from 2014 - 2021.
  • We increased the expected annual target credit percent to 25% as the volatility was relatively low for the given period.
note

The target was increased for illustrative purposes only, and it might be unrealistic to expect all years to reach that level of return. Unless you understand the risk, we recommend you go with David’s suggested 10% (or lower) target.

To access his backtest results, please head to our Slack via this invite link.

Thanks David for collaborating with us and bringing your trade to our simulator.

What will happen next

We are going to add the hedging parts of the Trinity System (Bomb Shelter and Vibranium Shield) to MesoSim and share the results similarly.

MesoSim v2.0: Campaign Mode, Indicators, IV Rank and more

· 2 min read
MesoSim v2.0 Network Banner
success

We are happy to announce that after three months of active development, MesoSim-2.0 is released on 18 September 2022. 🎉

During this period, there were over 6500 backtests executed by our users covering more than 47000 simulation years! 🙌

The new release includes the following features which our users most requested:

Pricing

This year in trading is a real differentiator for options trading: High- and smart beta strategies are equally suffering due to the lack of a bull market.

At the same time, theta harvesting strategies enable option sellers to collect premiums.

To remove the barrier to entry and make options backtesting (and therefore, trading) more accessible to everyone, we reduced our pricing to provide the most competitive one on the market:

  • Monthly: $50
  • Yearly: $420 (or $35 / month)

Subscribe here

Our customers who signed up for a more expensive plan will also benefit from our pricing reduction. We'll contact you soon.

Features and performance

High Performance Computing Neon Banner

To provide a more accurate simulation of how options traders take their strategies live, we implemented a way to keep Multiple Positions in Flight (also known as Campaign Mode).

Some users use indicators and/or IV Rank and Percentile to fine-tune their entries and exits. 

To provide means to do post-simulation analysis, we created the Equity CSV Export feature, which allows users to download the simulation equity over time as a CSV file for a given simulation run. 

As the new features drastically increased the number of data points processed during a run, we took additional steps to increase our unparalleled execution speed further.

With aggressive and speculative caching, we managed to achieve super-linear speedup:

In campaign mode, the execution time for every position in flight is reduced by 20%!

MesoSim v1.0: Product Launch

· 2 min read
rocket-launch-693236
We, at Deltaray are proud and happy to announce the launch of our first product, MesoSim.

Our advanced option strategy backtesting simulator is now available to register and subscribe to.

In the past couple of weeks, our beta testers ran over 1300 backtests covering 5368 simulation years;

Some shared strategies inside the Trading Dominion community achieved Sharpe ratio above 3!

We are excited to help more fellow option traders do research and iterate through simulations as fast as never before!

mesosim-screenshot

We have two types of accounts:

  • Free: read-only one (which allows you to look at shared results)
  • Standard Plan: $75/month or $600/year incl. a 3-days-trial

For more information on our features, look at our documentation or the Strategy Test Run Sample shared in our User Guide.

Subscribe here

To celebrate this special occasion, here is a 40%-off coupon, valid until 9 July, for your first annual subscription:

$360/year (with a 3-days trial).

Coupon code: July4

We’d love to see you joining our Slack community or get an email from you; please get in touch with your questions or feedback.

We are looking forward to hearing from you!

Your Deltaray Team