diff --git a/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/01 Abstract.html b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/01 Abstract.html new file mode 100644 index 0000000..4d23365 --- /dev/null +++ b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/01 Abstract.html @@ -0,0 +1,3 @@ +

+ In this strategy, we apply OLS and stationarity tests to construct a mean-reverting portfolio of Cryptocurrencies. +

diff --git a/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/02 Introduction.html b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/02 Introduction.html new file mode 100644 index 0000000..f4194b8 --- /dev/null +++ b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/02 Introduction.html @@ -0,0 +1 @@ +

Mean Reversion Trading is the process of trading assets or relationships that deviate from the long-term mean in hopes that the prices revert to the long term mean. There are several methods and models to carry out mean reversion, including using Moving Average crossovers. Furthermore, Pairs Trading is simultaneously going long on one stock while shorting another, and it is a form of Mean Reversion as Pairs Trading is the process of going opposite of the direction of the spread in hopes that the spread will revert to the mean. In our Optimal Pairs Trading strategy, we model the spread as an Ornstein-Uhlenbeck process to find the optimal levels to buy and sell the pair. However, Pairs Trading is a form of Statistical Arbitrage, so like all other forms of Arbitrage, the opportunity is whittled away as more participants employ the strategy. Thus, in this strategy, we extend the concept of Pairs Trading to more than two stocks; we construct a basket of several securities that we long and short in an attempt to create a mean-reverting portfolio. Specifically, we use Bitcoin (BTC), Bitcoin Cash (BCH), Ethereum (ETH), and Litecoin (LTC), four cryptocurrencies, for our portfolio.

diff --git a/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/03 Method.html b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/03 Method.html new file mode 100644 index 0000000..7490ac6 --- /dev/null +++ b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/03 Method.html @@ -0,0 +1,7 @@ +

We first gather 100 points of historical closing prices for BTC, BCH, ETH, and LTC. Using OLS, we regress BTC prices (we label BTC as the anchor in the code) against BCH, ETH, and LTC prices to create the following regression equation:

+ +\[P_{BTC} = \alpha + \beta_{BCH}P_{BCH} + \beta_{ETH}P_{ETH} + \beta_{LTC}P_{LTC}\] + +

Using this relationship, if we long 1 BTC, we take a position of -β{BCH, ETH, LTC}. Let this scenario be called “buying the portfolio”. If we go short 1 BTC, we take a position of β{BCH, ETH, LTC}. Let this scenario be called “shorting the portfolio”.

+

We then take the residuals of the OLS Regression and test them at the .05 significance level for both the augmented Dickey-Fuller and Phillips-Perron test. These are two different tests for stationarity, which helps us determine if the portfolio has mean-reverting qualities. If either test fails, we stop the trading.

+

To generate the rules of trading, we first compute the portfolio values of holding 1 BTC and -β{BCH, ETH, LTC}, and from these portfolio values we compute the mean (μ) and the standard deviation (σ). Then, if the value of the current portfolio trips below and then above μ - 1.5σ, we buy the portfolio, and if the value of the current portfolio trips above and then below μ + 1.5σ, we short the portfolio. Please note that the paper buys and sells the portfolio on the initial trips of the levels, however, we noticed that by waiting until the portfolio trips the levels the second time, we significantly reduce the drawdown and the losses.

\ No newline at end of file diff --git a/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/04 Algorithm.html b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/04 Algorithm.html new file mode 100644 index 0000000..1fb8a96 --- /dev/null +++ b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/04 Algorithm.html @@ -0,0 +1,6 @@ +
+
+
+ +
+
diff --git a/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/05 Results.html b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/05 Results.html new file mode 100644 index 0000000..f7837b8 --- /dev/null +++ b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/05 Results.html @@ -0,0 +1 @@ +

The algorithm achieved a Sharpe Ratio of 0.688 over approximately three years, while simply holding an equal weighting of BTC, BCH, ETH, and LTC would have achieved a Sharpe 0.12 over the same period.

\ No newline at end of file diff --git a/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/06 References.html b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/06 References.html new file mode 100644 index 0000000..9c74b37 --- /dev/null +++ b/04 Strategy Library/1038 Constructing a Mean-Reverting Portfolio of Cryptocurrencies/06 References.html @@ -0,0 +1,5 @@ +
    +
  1. + Leung, T. and Nguyen, H. (2019), "Constructing cointegrated cryptocurrency portfolios for statistical arbitrage", Studies in Economics and Finance, Vol. 36 No. 3, pp. 581-599. Online Copy. +
  2. +
\ No newline at end of file