Oregon State University|blogs.oregonstate.edu

Algorithmic Trading Strategies with Machine Learning

  January 15th, 2022

What is Algorithmic Trading?

For millennia, people have invested capital in productive endeavors in the hope of earning a return on their investment.  Over time, standards of financial accounting emerged, which provided insight into the operation and performance of such enterprises.  Eventually markets were established in which investors could buy and sell financial assets based upon their assessments of fundamental value.  These innovations have yielded a mechanism by which entrepreneurs seeking capital may coordinate with willing investors to allocate resources in a very efficient way.

Even a few decades ago these markets were driven by mostly manual analysis of financial statements and other inputs which might reveal the fundamental value of the underlying asset.  However, the abundance of market data which is now available in real time lends itself to a plethora of automated trading strategies.  Recent assessments indicate that more than 60 percent of the total trading volume on US public markets is now driven by algorithmic trading.

The most famous form of algorithmic trading is probably high frequency trading (HFT), in which market participants seek a slight edge on competitors (often measured in milliseconds) by exploiting small, temporal inefficiencies in the market.  In order to beat competitors to these opportunities, the major players implement fairly complex rules which are often executed on platforms located as close to exchanges as possible in the interest of speed.  This has sparked a FinTech arms race of sorts as market participants compete to secure the best locations, fastest equipment and most efficient algorithms.  However, like any arms race, this obsession with fastest execution carries a certain level of risk.

Perhaps the best example of this is the Flash Crash of 2010.  At approximately 2:32pm EDT on May 6, a large trader initiated the sell of a single type of asset valued in excess of $4 billion.  This transaction was large enough to look like a trend to various algorithms, which started trading in a dynamically unstable manner.  During the ensuing 36 minutes, the market logged its second largest intraday swing in history, even though there was no rational motivation for such behavior.  In the end, more than a trillion dollars of capital was wiped out and both the public and regulators became aware of the potential risks of algorithmic trading.

Figure 1 – Dow Jones tracker from May 6, 2010

Momentum Trading

Our project will not enter the foray of HFT, but rather will seek to capitalize on a more stable strategy of momentum investing.  In short, momentum trading recognizes that stocks which have been outperforming the market during the past several months, typically tend to do so over an ensuing period of similar duration.  Similar logic applies to stocks which have been underperforming the market as well.  In truth, the correlation only tends to prevail a little more than 50 percent of the time, but the distribution of performance tends to be skewed towards larger winners than losers, which often leads to momentum strategies out performing the market overall.

Several studies have shown that momentum investing is one of the few strategies which regularly delivers better returns than the market as a whole, although there are multiple opinions and no consensus about why the viability of this method persists. According to the efficient market theory, once a market bias is understood, it should be exploited and thus disappear, but this has not been the case with momentum-based trading. Several theories about the continuing success of momentum methods seem to revolve around persistent behavioral biases of market participants.

Universe Selection

Trying to apply optimization strategy to the market as a whole can be dauting at best and untenable at worst due to the sheer volume of potential investments available.  As such, it is typical to apply some coarse screening criteria to identify a manageable quantity of qualified investments which merit further analysis.  This group of pre-qualified assets is considered to be the investible universe, and deeper analysis will be applied to these assets in order to generate a list of trades.

Our project will focus predominantly on universe selection, and will integrate with existing modules which generate buy and sell signals for based on a broader automated strategy.  We will mostly seek to choose risky (i.e., volatile) assets which have demonstrated favorable momentum over the preceding period.  We will also seek to determine an optimal time window to evaluate, but our initial estimate (based largely on our sponsor’s experience) is that the optimal window to review will be approximately 3 to 6 months.

Asset Selection Criteria

For the first version, we will choose from roughly ten frequently traded ETFs by assessing growth and volatility over the preceding period.  Using this model, we will develop a module and integrate it with existing software which generates actual buy and sell signals for assets from the selected universe.  We will then seek more complex and nuanced logic which will provide better performance.

We will assess our code’s performance based on its ability to choose risky assets with strong returns.  For the initial version with approximately ten assets to choose from, we will check the performance over another period based on each of the ten assets available, and then see how the preferred asset (based on the criteria from our algorithm) performed in comparison to the others.  This will give a coarse, directional indication only, but we will look to tailor a more sophisticated testing regime before implementing more complex (and hopefully effective) strategies.

Print Friendly, PDF & Email

Leave a Reply