Automated Trading Strategy #50

One of my new favorite shows is called Pirate Gold Of Adak Island and it’s a reality tv series that documents a treasure hunt for approximately $365 million of gold buried around Adak Island in Alaska. Buried in 1882, a few tins of gold coins have been found in the 140 years since it was buried, and now this show seeks to document an attempt to find the rest. I won’t spoil the show for anyone that plans on watching it, but it did not disappoint.

In many ways, what we’re doing with this newsletter is the same thing they’re doing on Adak Island. We know there’s gold, but we have to find it. ATS seeks to document the journey.

As a quick reminder, our goal is to find the holy grail of automated trade strategy. Today we’re publishing a milestone strategy: Strategy 50. These are all the strategies we’ve published so far on our hunt.

click to enlarge

Click here for links to all strategies.

Where are we now? Like the treasure hunters in Adak Island, Alaska, we’ve found a few gold coins, but we’re looking for the treasure. And, we may have found that treasure in Strategy 50. It uses a minute based data series on several different contracts on the same high performing, low trade count strategy.

These are the futures contracts we backtested:

  • 6B — British Pound (FX)
  • 6E — Euro (FX)
  • CL — Crude Oil
  • ES — E-Mini S&P 500
  • FDAX — DAX
  • GC — Gold
  • NQ — E-Mini NASDAQ 100
  • RTY — E-Mini Russell 2000
  • YM — Mini Dow
  • ZB — 30 year Bond
  • ZN — 10Year Note
  • ZS — Soybeans
  • ZW — Wheat

The standard backtest, based on Strategy 50 and a 10 minute data series yielded the following results:

click to enlarge

Both charts show the results of Strategy 50 over one year. The top chart shows the results of the strategy when it closes at the end of the day. The bottom chart shows the results of the strategy when it does not close at the end of the day. In general, strategies that close at the end of the day pose less risk, but are less profitable. You also don’t have to pay initial margin. As a result, we tend to focus on strategies that close at the end of the day, but I wanted to show the results of both scenarios. To learn more about the impact of initial margin, click here.

In the top chart, you’ll notice that ES and YM have the highest profit factor at 8.61 and 11.57, respectively. The trend continues in the bottom chart with ES and YM having a profit factor of 9.14 and 13.22, respectively.

If we look at the number of profitable trades compared to unprofitable trades, ES and YM also lead the pack. In the first chart YM is profitable 87.88% of the time and ES is profitable 80% of the time. This is the same for both charts.

If we look at total portfolio results in green, we have an average profit factor of 2.43, and an annual net profit of $64K on 430 trades for Strategy 50 if it closes at the of the day. If it does not close at the end of the day, the average profit factor, net profit and trade count increases to 2.67, $73K and 434, respectively.

Due to the way in which portfolio stats are presented, we don’t have a max drawdown to share, but the average max drawdown for each contract is less than $1,500 under both scenarios.

What are the main takeaways here? There are several:

  • If you can only trade one contract, or if you want to start with one contract on Strategy 50 use YM. YM only made 33 trades in the standard backtest, but 88% were profitable. Unfortunately, YM only made $8,875 in one year, which is low.
  • One way to increase net income is to add additional YM contracts, so instead of running only 1 contract for $8,875, you can run 5 contracts for 5x the net income. Another way to increase income is to add additional contracts using the same strategy. For our portfolio we decided to run everything except for ZW, ZS, and ZB.

The first step in our testing process is to run a standard backtest. The next test is a backtest using high order fill, however, you can’t do this when you’re using more than one underlying contract so we had to skip to the next test: market replay. Market replay results are more accurate than both standard and high order fill results because there’s more data — more data equates to a better simulation of the market and how the strategy will perform in the market.

Unfortunately, due the size of data for market replay it is difficult and time consuming to run market replay data for a year so we just ran it for two weeks from 6/12/2022 to 7/1/2022. The results were mixed. Certain contracts like YM and ES confirmed the standard backtest results. Other contracts like FDAX, NQ and ZN did not. In fact, the results were the exact opposite. So we flipped the strategy on these contracts and ran them over the same time period. These were the results:

This is the portfolio we’ll be tracking in the Mudder Report going forward for Strategy 50.

Now it’s time for some bad new/good news.

Bad news — The bad news about Strategy 50 is that the market replay results varied from the standard backtest. The results varied so much that we had to manipulate the final portfolio results (flip the strategy for three contracts). I contemplated throwing this strategy out altogether. But there’s some good news here too.

Good news — First, YM and ES perform exceptionally well using Strategy 50 in both the standard backtest as well as the market replay. Second, both YM and ES also performed much better in terms of net income, which is the reason we’re using multiple contracts on Strategy 50 in the first place. If the market replay test is showing much higher net income for YM and ES, we can focus on only using YM and ES for the portfolio. Combined, the two contracts have an average profit factor over 10 for Strategy 50, which is phenomenal. Third, one of the primary benefits of a portfolio is that it spreads the risk around. This portfolio is diversified in both strategy command and contract type. By testing this portfolio strategy, we’ll have a chance to see what this diversification looks like over time.

Admittedly, Strategy 50 has the potential to be one of the best or worst strategies we’ve ever shared, but based on preliminary results I have good reason to think it’s the former. And with stats this good, that good reason is enough to really excite the soul.

The next step in the test is to run the portfolio strategy on a simulated live account on a virtual server located in Chicago (the closer you can get to the actual exchange, the better), which is what we’re doing now. We just started the live test on Tuesday (7/5). Over the next few months we’ll know what kind of strategy this is. It’s too soon to tell just yet, but subscribers can follow results of this portfolio in the Mudder Report.

Subscribe now

The first report on Strategy 50’s live performance will come out in the Mudder Report.

Now, I’m going to get into how to recreate Strategy 50. The strategy is also available for download (C#) below. To read the rest of this post click here.

One thing many of you have asked for is a less expensive version of the ATS Newsletter. One of our free subscribers suggested a kind of mini version of ATS; one that included a drip of our older strategies. I think it’s a great idea. So in commemoration of our 50th strategy, we launched the ATS Mini Newsletter.

Like ATS, subscribers of ATS Mini will receive a new strategy every two weeks, but it will be one of our older strategies. For example, on August 1, ATS subscribers received Strategy 52; and ATS Mini subscribers received Strategy 7. So, ATS subscribers have instant access to all 52 strategies, while ATS Mini subscribers have instant access to only the first 7 of those strategies. The ATS Mini Newsletter is the starter class ($29/month); The ATS Newsletter is the master class ($1,249/month). Join the hunt!

To subscribe to the ATS Mini Newsletter click here.

To subscribe to the original ATS Newsletter click here.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store