Trading the Breaking

Trading the Breaking

Share this post

Trading the Breaking
Trading the Breaking
Portfolio: Portfolio of uncorrelated systems
Alpha Lab

Portfolio: Portfolio of uncorrelated systems

Uncover the hidden dangers of correlated trading botsβ€”before your portfolio pays the price

πš€πšžπšŠπš—πš π™±πšŽπšŒπš”πš–πšŠπš—'s avatar
πš€πšžπšŠπš—πš π™±πšŽπšŒπš”πš–πšŠπš—
Feb 22, 2025
βˆ™ Paid
11

Share this post

Trading the Breaking
Trading the Breaking
Portfolio: Portfolio of uncorrelated systems
4
Share

Table of contents:

  1. Introduction.

  2. Bots doing their homework.

  3. The portfolio zooβ€”aka mix of bot strategies.

  4. What are the dangers of having correlated bots?

  5. Guide to building a portfolio of uncorrelated systems.

  6. Balancing wins and losses.


Introduction

Trading bots are like the star players in a high-stakes orchestraβ€”each with its own instrument, playing a unique tune. But when they’re all jamming together in the same portfolio, their harmony (or lack thereof) can either create a masterpiece or a cacophony. Today, we’re diving into the world of trading bots and how their interactions can make your portfolio sing or screech. The key idea? If bots move in sync, your portfolio can skyrocket or nosedive. But if they dance to their own beats, you’ll enjoy smoother, more predictable returns.

Let’s kick things off by decoding what a bot’s β€œPnL” really means and how to tell if two bots are best buddies or bitter rivals.

Bots doing their homework

In the trading world, PnLβ€”Profit and Lossβ€”is like a bot’s report card. It tells you how well the bot is performing. When we say two bots have correlated PnL, it means they tend to score high or low at the same time. This is measured using the correlation coefficient, denoted by ρ.

The correlation coefficient between two bots’ PnLs, PnLA and PnLB​, is calculated as follows:

\(\rho_{\mathrm{PnL}} = \frac{\mathrm{Cov}\bigl(\mathrm{PnL}_A, \mathrm{PnL}_B\bigr)}{\sigma_A \,\sigma_B} \)

Where:

  • Covariance (Cov) measures how two variables move together.

  • ΟƒA and ΟƒB are the standard deviations of the PnLs of Bot A and Bot B.

If ρPnL = 1, the bots are perfectly correlatedβ€”they move exactly in sync. If ρPnL = βˆ’1, they are perfectly anti-correlatedβ€”when one wins, the other hedge losses. And if ρPnL = 0, their moves are independent. Think of it like two classmates: sometimes they work together on a projectβ€”high correlationβ€”and sometimes they work separatelyβ€”zero correlation.

Our goal is for them to work independently, together but not mixed. The higher the correlation, the greater the risk. And a negative correlation can either be a real disaster or a well-coordinated portfolio of systems.

A simple example. Consider two bots:

  • Bot A trades technology stocks.

  • Bot B also trades technology stocks.

If both bots take a hit on the same day because of a tech crash, they’re highly correlated. But if one bot loses while the other gainsβ€”maybe by trading different sectorsβ€”they’re uncorrelated or even negatively correlated.

Now that we have defined PnL correlation, let’s look at how mixing different types of bots creates a diverse portfolioβ€”much like mixing different flavors in a juice!

The portfolio zooβ€”aka mix of bot strategies

Different bots follow different strategies. Here are three common types:

  • Arbitrage bot: The sneaky ninja of trading, exploiting tiny price differences between markets.

  • Trend-following bot: The surfer, riding the waves of rising or falling markets.

  • Mean-reversion bot: The bargain hunter, buying low and selling high when prices return to average.

When these bots have uncorrelated PnLs, combining them creates a robust portfolio. It’s like a zoo where lions, penguins, and sloths all contribute in their own unique ways. The result? Their risks don’t pile up destructively. And example here:

The cumulative PnLs are plotted to show how the portfolios perform over time. The uncorrelated portfolio is expected to be smoother, while the correlated one might exhibit more volatility.

After seeing how a mix of bots affects your portfolio’s performance, the next natural question is: What happens when all the bots decide to behave in the same way?

What are the dangers of having correlated bots?

When multiple bots chase the same market signals, their PnLs become highly correlated. This scenario is dangerous because it means that when one bot makes a mistake, all of them do. Think of it as a sports team where every player runs in the same directionβ€”if that direction turns out to be wrong, the whole team suffers.

The variance of a portfolio consisting of N bots can be expressed as:

\(\sigma_p^2 = \sum_{i=1}^{N} w_i^2 \sigma_i^2 + 2 \sum_{i<j} w_i w_j \rho_{ij} \sigma_i \sigma_j \)

Here, wi​ is the weightβ€”or allocationβ€”to bot i, Οƒi​ is its standard deviation, and ρij​ is the correlation between bots i and j.

  • If ρij β‰ˆ 1 for all pairs:
    The second term adds up dramatically, making the portfolio extremely volatile. This is like building a tower out of jellyβ€”it collapses easily!

Remember 2018? Several hedge funds using similar momentum strategies experienced massive losses because their bots acted in unison. When one bot dropped, others followed, and the losses compounded.

Knowing the dangers of highly correlated bots, let’s move to a practical guide on how to build an uncorrelated bot army. This is where the diversity of system typologies becomes your best friendβ€”and by systems I don't mean vectors, but this is something we will cover in future articles.

Guide to building a portfolio of uncorrelated systems

This post is for paid subscribers

Already a paid subscriber? Sign in
Β© 2025 Quant Beckman
Privacy βˆ™ Terms βˆ™ Collection notice
Start writingGet the app
Substack is the home for great culture

Share