Next Article in Journal
Trapping the Ultimate Success
Next Article in Special Issue
A Note on the Strong Predictable Representation Property and Enlargement of Filtration
Previous Article in Journal
Evolutionary Synthesis of Failure-Resilient Analog Circuits
Previous Article in Special Issue
Attracting the Right Crowd under Asymmetric Information: A Game Theory Application to Rewards-Based Crowdfunding
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Closing a Bitcoin Trade Optimally under Partial Information: Performance Assessment of a Stochastic Disorder Model

Institute for Statistics and Mathematics, WU-University of Economics and Business, Welthandelsplatz 1, 1020 Vienna, Austria
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(1), 157; https://doi.org/10.3390/math10010157
Submission received: 29 September 2021 / Revised: 19 December 2021 / Accepted: 28 December 2021 / Published: 5 January 2022

Abstract

:
The Bitcoin market exhibits characteristics of a market with pricing bubbles. The price is very volatile, and it inherits the risk of quickly increasing to a peak and decreasing from the peak even faster. In this context, it is vital for investors to close their long positions optimally. In this study, we investigate the performance of the partially observable digital-drift model of Ekström and Lindberg and the corresponding optimal exit strategy on a Bitcoin trade. In order to estimate the unknown intensity of the random drift change time, we refer to Bitcoin halving events, which are considered as pivotal events that push the price up. The out-of-sample performance analysis of the model yields returns values ranging between 9% and 1153%. We conclude that the return of the initiated Bitcoin momentum trades heavily depends on the entry date: the earlier we entered, the higher the expected return at the optimal exit time suggested by the model. Overall, to the extent of our analysis, the model provides a supporting framework for exit decisions, but is by far not the ultimate tool to succeed in every trade.

1. Introduction

“Buy low and sell high” is the common advice given to rational investors. The advice is easier to follow in the markets where the asset prices move primarily according to the underlying fundamentals. However, in the case of financial bubbles, asset price increases are mainly due to the belief that future prices will increase, known as the so-called momentum effect. In that case, following the advice becomes more challenging, and trading becomes riskier, as it becomes harder to predict the ultimate maximum, which would be exactly known only after the bubble bursts.
The cryptocurrency market has attracted significant attention over the past few years, leading to abnormal returns for early investors. Bitcoin was officially launched on 3 January 2009, when the first block of the Bitcoin blockchain, called the genesis block, was created. Over the years, Bitcoin has become the best performing asset ever, reaching approximately 28,000 percent of a return on investment. Among the cryptocurrency community, keywords like “HODL”, which means “Hold on, doubt less”, or “FOMO”, which means “Fear of missing out”, established, referring to the extreme market dynamics of cryptocurrencies. A 10 percent loss on a given day is accepted as normal in the cryptocurrency market, while such a drop would lead to financial turmoil in traditional markets, such as a stock market.
Moreover, momentum seems to exist in cryptocurrencies (see, e.g., [1,2]), which might be due to the herding effect ([3]). Overall, the cryptocurrency market and markets with a speculative bubble share some common characteristics, like being very volatile and inheriting the risk of quickly increasing to a peak, and decreasing from the peak in an even quicker way (see, [4,5], for an extensive review on the properties of the cryptocurrency market). In this context, it is vital for small investors to determine the closing time of their positions optimally. Not doing so may prevent investors from using the momentum opportunity, and may result in significant losses in a short period, mainly due to the fast-moving property of the Bitcoin price.
Acknowledging the stylized facts of the markets with a financial bubble, refs. [6,7,8] propose a partial-information setting, and analyze how to close long and short positions optimally in a momentum trade in the market with bubbles. Both studies modeled the underlying asset price as a geometric Brownian motion with disorder. That is, the drift of the return process is governed by a random variable that can take only two values, yielding a positive drift or a negative drift, which is not directly observable by the investor. The investor is assumed to observe prices and know the distribution of the random time that the drift changes from a positive value to a negative one. What distinguishes the settings given in [6] and ref. [7] is the underlying assumption on the distribution of the random time that the drift change occurs: the former study assumes an exponentially distributed random time, and the latter assumes that the random time is uniformly distributed. While the exponential distribution assumption implies that the bubble will burst or the momentum effect will vanish in time, the uniform distribution assumption suggests maximum uncertainty on the actual structure of the distribution of the random time, since the uniform distribution has the maximum entropy on a finite time interval.
The investor’s objective is to maximize the profit from the trade, and accordingly, he or she would hold a long position until the drift changes from the positive to the negative value. As the exact time of the drift change is not known to the investor, he or she faces an optimal stopping problem under incomplete information. As a solution to this problem, ref. [6] characterizes the optimal trading strategy as the closing of the long position at the first time when the conditional probability that the random changing time hits a constant barrier, which is given through the solution of a free boundary problem. The solution provided in [9] is based on the so-called Shiryaev–Roberts statistic (SR), and the optimal closing time is characterized as the first time when the SR process crosses some time-dependent boundary, which can be obtained from a particular integral equation. The model suggested in [7] is shown to perform well in the US stock market data (see [9]), while the performance of the model given in [6] has not been investigated so far.
Several studies have suggested sophisticated models for the Bitcoin price dynamics (see, e.g., [10,11]). Although the proposed models seem to be consistent in explaining the price behavior, they may not be suitable for the analysis we would like to conduct here, assuming that a stochastic or rough volatility model does not allow for a partial information setting in continuous time. In particular, in a rough model, the volatility process is neither a semimartingale nor a Markov process, and accordingly, it is not possible to use standard results in stochastic filtering.
In this paper, our objective is to investigate the performance of the stochastic disorder model introduced in [6]. Although the theoretical results are readily available for the model under consideration, it necessitates an effort to bring them into practice. In particular, estimation of the parameter ( λ ) of the distribution of the random time that the drift change occurs is not straightforward. If we could observe the exact times of the drift changes, λ could be estimated by counting the number of drift changes during the estimation period, and dividing this number by the sum of waiting times between two consecutive changes.
We think that the Bitcoin market is suitable to apply the stochastic disorder model due to having many local maxima in the historical price series. Our idea is to use the specific properties of this market to tackle the issue concerning the estimation of λ . More precisely, to attribute a down (up) movement in an ongoing increase (decrease) in prices to a drift change ex-post, we suggest referring to Bitcoin halving events. Bitcoin halving events occur after 210,000 new blocks are added to the blockchain. Then, the rate at which new coins are released into circulation is cut in half. Thus, Bitcoin miners who receive the newly issued Bitcoins for the computational power they provide to secure and maintain the entire system will only continue to perform their tasks if they are compensated for the remuneration cut. The only way to compensate Bitcoin miners for their "loss” is an immediate price increase of Bitcoin. Hence, after each halving event, a significant price increase is expected at some future point (see Section 2.4 for details). For this reason, we suggest to initiate long Bitcoin trades after each halving event. The recent literature provides results on the detection of cryptocurrency bubbles, see, e.g., [12,13]. By using the log-periodic approach, ref. [13] presents a detailed bubble analysis of the Bitcoin, and identify three major peaks and ten additional smaller peaks. We mainly cover the periods with major bubbles in our analysis below.
Following [9], we suggest a drift parametrization that allows us to understand whether the Bitcoin prices fall faster than they rise, or vice versa. Finally, after obtaining the in-sample parameter estimates, we run an out-of-sample performance test for the model. We refer to Bitcoin halving events and the news data to decide on a realistic entry date for a long position, and we use the percentage of the maximum as a performance criterion.
To the best of our knowledge, this is the first study investigating the performance of an optimal exit strategy under a stochastic drift model with partial information on a Bitcoin trade. Our findings suggest that Bitcoin prices fall faster in a bubble than they increase. The out-of-sample performance analysis of the model yields return values ranging between 9% and 1153%. The return of the initiated Bitcoin momentum trades heavily depends on the entry date. The earlier we entered, the higher the expected return at the optimal exit time suggested by the model. This result is intuitive as the optimal exit times cluster around the same point in time, and an earlier entry means a lower entry price, at least in a bubble. At this point, it is essential to mention the high price volatility, which manifests itself as high noise variance, making it hard for the model to detect the actual drift change point. Thus, to the extent of our analysis, the model provides a supporting framework for exit decisions, but is by far not the holy grail to succeed in every trade.
We organize the remainder of this paper as follows. Section 2 covers the underlying modeling setup and gives information on estimation methodology and data. In Section 3, we provide the numerical results, and we discuss implications. Section 4 concludes.

2. Materials and Methods

2.1. Model and Methodology

In this part, we will cover the model setting given in [6], and we will provide the steps needed in order to bring the theoretical results into practice.
We consider a finite time interval [ 0 , T ] and a filtered probability space ( Ω , G , G , P ) , where G = ( G t ) t 0 satisfies the usual conditions; all processes and random variables that we consider here are assumed to be G -adapted. Let θ be a random variable in the given probability space with some known distribution function. In the following, θ represents the random time that the drift change occurs.
We assume that the asset price process S is modeled by a geometric Brownian motion with disorder given by the dynamics:
d S t = μ ( t ) S t d t + σ S t d W t , S 0 = s > 0 ,
where μ ( t ) = μ h ( μ h μ l ) 1 { θ t } with μ h and μ l are constants, such that μ h > μ l and W is a G -Brownian motion independent of θ .
Now, denote by F the filtration generated by the asset price process. That is,
F = ( F t ) t 0 , F t = σ { S u , 0 u t } .
Note that the filtration F is strictly contained in G , the global filtration. Let T be the set of F -measurable stopping times with τ T . We assume that the risk-free rate in the market is zero. The objective of the investor is to decide on the selling time that maximizes the expected discounted payoff, based on the information carried by the asset price trajectory. Technically speaking, the investor faces the optimal stopping problem with the value function
V ( s ) = sup τ T E 0 , s P ( S τ ) ,
where E 0 , s P indicates the P -conditional expectation given that S 0 = s .
In what follows, for the sake of completeness, we will recall the main theoretical results provided in [6]. Then, we will introduce the algorithms that we use to bring the theoretical results into practical implementation.
We begin with the standing assumption distinguishing the works [6,7].
Assumption 1.
The switching time of the drift has the following distribution:
P ( θ t | θ > 0 ) = e λ t , f o r t > 0 , a n d P ( θ = 0 ) = π ,
for some λ > 0 and π in [ 0 , 1 ) .
Next, we define by Π t the posterior probability process Π t = P ( θ t | F t ) . The results in standard filtering theory suggest that (see, e.g., Ref. [14]) Π has the dynamics given by
d Π t = λ ( 1 Π t ) d t ω Π t ( 1 Π t ) d W ¯ t , Π 0 = π ,
where ω = ( μ h μ l ) / σ and W ¯ is a ( P , F ) -Brownian motion given by
d W ¯ t = d S t σ S t 1 σ S t ( Π t μ l + ( 1 Π t ) μ h ) S t d t .
Note that W ¯ is called the innovation process in filtering literature.
Proposition 1.
(Ekström and Lindberg [6]). Denote by a = 2 λ ω 2 , b = 2 ω λ ω σ and γ = ( b 1 ) 2 + 4 c with c = 2 ( λ μ h ) ω 2 , and let B be the unique positive solution to the free boundary equation
2 0 e a t t ( b + γ 3 ) / 2 ( 1 + B t ) ( γ b + 1 ) / 2 d t = ( γ b + 1 ) ( 1 + B ) 0 e a t t ( b + γ 3 ) / 2 ( 1 + B t ) ( γ b + 1 ) / 2 d t .
Define the likelihood process Φ = Π / ( 1 Π ) , then the solution to the optimal stopping problem (1) is given by
τ = inf t 0 : Φ t B .
Proof. 
Please see the proof of Proposition 1 and Theorem 1 in [15]    □
Proposition 1 suggests that the optimal closing time for a long position is the first time that the posterior probability process Π t , representing the filtered estimate of the probability that a drift change occurred given the information at t, hits to the constant boundary B B + 1 .
To apply the model, we obtain historical price series S 0 , , S N and apply the following algorithm to determine the optimal closing time:
  • Fix an entry date within the observation period and take the price history up to the closing price of the day before the entry (in-sample period), and estimate the parameters σ , μ h , μ l , λ (please see Section 2.2 for parameter estimation)
  • Use the estimated parameters in RStudio ([15]) to numerically solve the free boundary Equation (2) for constant barrier B (please see Appendix A for the code)
  • Initialize the filtering algorithm using the investor’s initial guess for the probability of an immediate drift change: Π 0 = π = P ( θ = 0 )
  • Each trading day after the entry, download the closing price and obtain recursively the filtered estimates through the discretized filtering equation:
    Δ Π k = λ ( 1 Π k 1 ) Δ t w Π k 1 ( 1 Π k 1 ) Δ W ¯ k ,
    where W ¯ is the innovation process given by
    Δ W ¯ k = S k S k 1 σ S k 1 1 σ Π k 1 μ 1 + ( 1 Π k 1 ) μ 2 Δ t
  • Compute the likelihood process Φ k = Π k 1 Π k
  • Stop the algorithm when the filtered value Φ k hits the barrier B

2.2. Parameter Estimation

The model introduces unknown parameters π , σ , μ h , μ l , and λ . The parameters need to be estimated to find a numerical solution to the free boundary equation and obtain filtered probability estimates. The first parameter is the investor’s initial guess for the probability of an immediate drift change. This can be set to 0 or another small value, depending on the subjective belief of the investor. We will refer to the maximum likelihood estimates for the rest of the parameters. Since the asset price S is modeled by a geometric Brownian motion, the sequence of log-returns r k = l o g ( S k / S k 1 ) is normally distributed with mean ( μ h 1 2 σ 2 ) Δ t and standard deviation σ Δ t . Using the standard formula for the standard deviation and dividing by Δ t , we find the estimate
σ ^ = 1 ( T 1 ) Δ t t = 1 T ( r t r ¯ ) 2
where r ¯ = 1 T t = 1 T r t is the sample mean of the log returns. Recall that the investor enters into a long position only if he or she believes that the underlying drift of the asset price process S is positive. By setting r ¯ = ( μ h 1 2 σ 2 ) Δ t and solving for μ h , we have the estimated positive drift given by
μ h ^ = r ¯ Δ t + σ 2 2
At θ , the drift change occurs; that is, the drift switches from μ h to μ l . As suggested in [9], we use the following drift parametrization: the negative drift is equal to the positive drift times a negative constant α , which can be interpreted as the speed of the downward movement. Thus,
μ l ^ = α μ h ^ ,
for α ( , 0 ) . Intuitively, α controls the difference between the speed of the upward and downward movements in the asset prices. For example, if a financial bubble bursts, one may expect the asset prices to fall faster than it has increased, which would imply that α < 1 .
Finally, we need to estimate the parameter λ , representing the intensity of the random drift change time θ . If we could observe the exact times of the drift changes, the MLE estimate of λ would be obtained by counting the number of drift changes during the estimation period, and dividing this number by the sum of waiting times between two consecutive changes. Although in a given set of asset price series, it is possible to count the number of local maxima, due to the unobservability of the actual drift change points, one cannot make sure whether such a change in the asset price is due to high volatility or an actual switch in the drift. In order to address this issue, we refer to Bitcoin halving events (see Section 2.4) and characterize any local maxima as an actual drift change, provided that there has been a halving event that occurred in the near past.
Obtaining an estimate for a number of drift changes, we utilize the maximum likelihood estimator of λ :
λ ^ = J i = 1 J x i Δ t ,
where J indicates the total number of drift changes that occurred and x i indicates the ith waiting time (in days).

2.3. Performance Measure

The investor who initiates a long momentum trade and uses the model mentioned above aims to determine the optimal exit time to maximize the expected return from the trade. Due to partial information, it is rarely the case that the investor can sell the asset at the ultimate maximum. Accordingly, as a natural performance measure, we consider the deviation between the maximum price and the model-implied selling price (see also [9]). The performance measure is thus given by
%   of   maximum = 100 P e x i t P m a x i m u m .
Note that, in our results below, we also provide the actual percentage return, that is, 100 ( P e x i t P e n t r y 1 ) .

2.4. Price Data and 4-Year-Cycles

Figure 1 represents Bitcoin’s trajectory in absolute prices (top pane) and log prices (bottom pane). Within the past decade, Bitcoin has seen spectacular ups and downs, resulting in one of the most volatile trading histories ever, where double-digit returns were fairly common, both positive and negative. We retrieved daily BTC/EUR price data without a single missing value from coinmarketcap.com on 15 May 2021.
The next section aims to find optimal exit times for several long Bitcoin trades. Thus, we are especially interested in the price peaks corresponding to exponential price increases in December 2013, December 2017, and June 2019. Recently, Bitcoin skyrocketed again and reached a new all-time high, approaching the USD 100,000 price target. The realized local peaks and local troughs of the price series are marked by the red triangles and the blue triangles, respectively. Moreover, the so-called Bitcoin halving events are marked by green points.
A halving event occurs after 210,000 new blocks are added to the Bitcoin block-chain. Since it usually takes about four years from one halving event to another, people also refer to Bitcoin’s 4-Year-Cycles. We can clearly observe the positive price effect of such halving events in Figure 1. These events are critical, especially for Bitcoin miners, as their remuneration gets cut in half. More precisely, the rate of newly issued Bitcoins, which miners receive for the computational power they provide to secure and maintain the entire Bitcoin ecosystem, is cut in half. From an economic point of view, Bitcoin miners will only continue to execute their tasks if they are compensated for the resulting “loss”.
For example, Bitcoin saw a sharp increase almost a year after the first halving event on 28 November 2012. In November 2013 alone, Bitcoin surged by a 4.50 multiple and reached a local high at the beginning of December 2013. Eventually, the bubble burst, followed by a 76% price decline until April 2015. In anticipation of the second halving event on 9 July 2016, Bitcoin gained momentum as the digital currency and was in the news everywhere around the world, and a wave of private investors started to speculate on increasing prices. A couple of months after the halving event, Bitcoin started to take off and realized a staggering annual return of 11,427% in 2017. However, history repeated itself, and the bubble burst in December 2017, which led to an 83% price decline from the peak.
In early 2019, Bitcoin recovered and reached the critical EUR 10,000.00 price level again. However, the digital currency dropped below the support and declined until the global pandemic hit the financial market. In the middle of March 2020, Bitcoin lost 37% in a single day before reaching a new local trough. To the surprise of many investors, Bitcoin rallied in a V-shaped recovery to the most recent halving event on 11 May 2020, although the global economy was hit hard, and unemployment rates spiked to unseen levels. Nevertheless, Bitcoin surged shortly after the halving event, surpassed previous all-time highs, and peaked at EUR 53,318.77 on 13 April 2021, with a 572% return since May 2020. Hence, it seems that Bitcoin miners are compensated for their revenue cut by a price surge of the digital currency after each halving event. Based on these findings, we have a strong argument in place to initiate long Bitcoin trades after each halving event.

3. Results and Discussion

In this section, to demonstrate the model’s performance, we will apply the results of Section 2 to a sample set of Bitcoin momentum trades during the bubble in 2017. We selected this period for two reasons: firstly, the second halving event occurred in July 2016, so we expect a price increase such that the momentum effect drives the actual price away from the fundamental value, as described above. Secondly, since the bubble burst at the end of December 2017, we have an actual trend reversal within the period under consideration. Note that, as of the writing of this article, the increasing trend that started after the halving event on 11 May 2020 is still prominent. Accordingly, when we consider entry dates after the recent halving event, our model does not suggest any exit within the considered data sample period. Below, we also report the results for those cases, where we initiate the long trade on 16 October 2020, 11 December 2020, and 27 January 2021, and set the exit date to the last day of the data sample period.
In order to find the optimal exit times implied by the model, we first use the price history up to the selected entry time (in-sample period), we fix Δ t = 0.1 and α { 0.5 , 1 , 2 , 3 } , and estimate the model parameters. Then, we employ the algorithm given in Section 2.1. Please note that during our analysis, we have also considered α values, α { 4 , 5 , 6 } . The corresponding results do not suggest further insights or yield different conclusions, so we do not report them here. Figure 2 shows the result for six Bitcoin momentum trades that are initiated after the halving event in 2016. The red points represent the entry dates: we chose entries on 9 July 2016 (directly at the halving event), 11 January 2017, 24 March 2017, 16 July 2017, 14 September 2017, and 12 November 2017. Note that all but the first entry date correspond to the troughs of major corrections. At this point, it is worth mentioning the high volatility of Bitcoin, since it establishes a harsh environment for the model to perform well. In other words, high noise variance results in high fluctuations around the mean of the asset price, which makes it hard for the model to detect the actual drift change point. Within the considered period, the drift change occurred at the local maximum on 16 December 2017 at EUR 16,590 per Bitcoin, designated by the blue vertical line in Figure 2. The model-implied optimal exit times are designated by the orange squares.
In Figure 3, we provide details on how the optimal exit time for the particular entry date, the March 2017 trade, is determined. We obtain the following parameter estimates of σ = 0.43 , μ h = 0.24 , μ l = 0.49 , λ = 0.45 and we fix α = 2 . Moreover, the solution of the free boundary equation is B = 0.93 . We initialize the process Φ with Φ 0 = 0.1 (as for all other trades); hence, we set the probability of an immediate drift change after the entry to a pretty low value. The top pane represents Φ , and the lower pane represents the actual Bitcoin price after the entry of the long momentum trade on 24 March 2017, marked by the red point.
As is revealed in Figure 3, the correction in July 2017 almost triggered an exit, since the value of Φ spiked rapidly, came very close to the barrier B. Although moving forward to the other major corrections in September 2017 and November 2017 also resulted in a spike, the levels reached are lower than the first one. Finally, when the Bitcoin price decreased significantly after the peak on 16 December 2017 marked by the vertical blue line, the optimal exit time was reached on 1 February 2018, when the probability ratio Φ t crossed the barrier B for the first time.
Returning to the analysis of the entire set of Bitcoin momentum trades again, the optimal exit times of July 2016, January 2017, and March 2017 trades are determined as 1 February 2018. The optimal exit time of the July 2017 trade is on 2 February 2018, of the September 2017 trade on 4 February 2018, and of the November 2017 trade on 5 February 2018. Thus, regardless of the dispersed entry dates, the corresponding optimal exit times are consolidated at the beginning of February 2018, more than a month after the local peak occurs. The returns of the respective trades heavily depend on the entry date, as an earlier entry results in a higher profit. Overall, returns spread between 1153%, corresponding to the July 2016 trade, and 9%, corresponding to the November 2017 trade. Note that these results are achieved using α = 2 .
Table 1 displays the results for all of the trades mentioned above using different values of α . Altogether, all trades resulted in a positive return, regardless of the value of α . Overall, α = 2 yields the best performance, implying that Bitcoin price seems to fall faster in a bubble than it increases. This finding is in contrast with the result given in [9], which finds α = 1 as the optimal parameter, implying that in a bubble, prices tend to increase and decrease at around the same speed among traditional asset classes.
Furthermore, we find that α = 0.5 yields slightly better returns and performance than α = 1 . We attribute this result to the slower reaction of the model against the significant downturn in prices. To be precise, α = 0.5 implies a higher value for the barrier B, which means that the value of Φ t should rise higher as well to trigger an exit. When we focus on the price of Bitcoin, we observe a major upward correction before the price heads down again. Thus, the first significant drop of more than 50% is ignored in the α = 0.5 case, and consequently, the model suggests optimal exit times when the price started to free-fall again after a major upward correction.
Note that α = 3 suggests optimal exit times earlier than the time point that the peak occurs, that is, the actual drift change point. One can explain this result by referring to the argument that we made above: As α = 3 means that price decreases 3-times faster than it increases, on average, the model implies earlier optimal exit times compared to the cases with a lower value of α . This fact is reflected in the result where the optimal exit time is found to be 15 July 2017. Actually, the major correction in July 2017 seems to be a volatility spike and not an actual drift change point, and accordingly, the model implied optimal exit time yields only 10.51% return. Overall, high volatility combined with a significant negative drift makes it hard for the model to perform well.
When we focus on the trades that are initiated after the halving event on 11 May 2020, we observe a significant decrease in the estimated value of λ . That, in turn, causes an increase in the boundary level B. Accordingly, the model does not suggest any exit within the given sample period. We instead assume an exit from the given long trades at the last date of the sample period.
Finally, we see that the return from an initiated Bitcoin momentum trade heavily depends on the entry date: the earlier we entered, the higher the expected return at the optimal exit time suggested by the model. This is because the model-implied optimal exit times are consolidated at the beginning of February, and an earlier entry means a lower entry price, at least in a bubble. Thus, based on our analysis, the model provides a supporting framework for exit decisions, but is by far not giving the magical formula to succeed in every trade.

4. Conclusions

In this paper, we investigate the performance of the partially observable digital-drift model of Ekström and Lindberg [6] and the corresponding optimal exit strategy on a Bitcoin trade. To estimate the unknown intensity of the random drift change time, we refer to Bitcoin halving events, which are critical events that push the price up eventually. Moreover, following [9], we suggest a drift parametrization that allows us to understand whether the Bitcoin prices fall faster than they rise or vice versa. Finally, after obtaining the in-sample parameter estimates, we run an out-of-sample performance test for the model.
The performance analysis of the model yields return values ranging between 9% and 1153%. We conclude that the return of the initiated Bitcoin momentum trades depends on the entry date: the earlier we entered, the higher the expected return at the optimal exit time suggested by the model. Moreover, our findings suggest that Bitcoin prices seem to fall faster in a bubble than they increase. Overall, to the extent of our analysis, the model provides a supporting framework for exit decisions, but is by far not the ultimate tool to succeed in every trade.

Author Contributions

Conceptualization, Z.E.; methodology, Z.E.; software, D.S. and Z.E.; validation, D.S. and Z.E.; formal analysis, D.S. and Z.E.; investigation, D.S.; resources, D.S.; data curation, D.S.; writing—original draft preparation, D.S. and Z.E.; writing—review and editing, D.S. and Z.E.; visualization, D.S.; supervision, Z.E.; project administration, Z.E. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study is publicly available on Coinmarketcap (https://coinmarketcap.com/, accessed on 15 May 2021).

Acknowledgments

We thank anonymous reviewers for their constructive comments.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Accompanying R-Code

The following code is used to solve the free boundary Equation (2) for constant barrier B numerically in RStudio.
a.fun <- 2*lambda.hat/(omega^2)
b.fun <- 2/omega*((lambda.hat/omega)-sigma.hat)
c.fun <- 2*(lambda.hat+rf-mu2.hat)/(omega^2)
gamma.fun <- sqrt((b.fun-1)^2+4*c.fun)
 
### Check conditions
mu1.hat < rf
b.fun < c.fun
gamma.fun > b.fun+1
 
### Solve the free boundary equation
psi.fun<-function(t,B){exp(-a.fun*t)*t^((b.fun+gamma.fun-3)/2)*(1+B*t)
^((gamma.fun-b.fun+1)/2)}
 
psi.f.der<-function(t,B){exp(-a.fun*t)*t^((b.fun+gamma.fun-1)/2)
*(1+B*t)^((gamma.fun-b.fun-1)/2)}
 
int.psi.f<-function(B){integrate(psi.fun, lower=0, upper=Inf, B=B)}
 
int.psi.f.der<-function(B){integrate(psi.f.der,lower=0,upper=Inf,B=B)}
 
obj.val<-function(B){2*int.psi.f(B)$value-(gamma.fun-b.fun+1)*(1+B)
*int.psi.f.der(B)$value}
 
B <- uniroot(obj.value, interval = c(0,100000))$root

References

  1. Cheng, Q.; Liu, X.; Zhu, X. Cryptocurrency momentum effect: DFA and MF-DFA analysis. Physica A 2019, 526, 20847. [Google Scholar] [CrossRef]
  2. Tzouvanas, P.; Kizys, R.; Tsend-Ayush, B. Momentum trading in cryptocurrencies: Short-term returns and diversification benefits. Econ. Lett. 2020, 191, 108728. [Google Scholar] [CrossRef]
  3. Daniel, K.; Hirshleifer, D.; Subrahmanyam, A. Investor Psychology and Security Market Under- and Overreactions. J. Financ. 1998, 53, 1839–1885. [Google Scholar] [CrossRef] [Green Version]
  4. Bariviera, A.F.; Basgall, M.J.; Hasperué, W.; Naiouf, M. Some stylized facts of the Bitcoin market. Physica A 2017, 484, 82–90. [Google Scholar] [CrossRef] [Green Version]
  5. Wątorek, M.; Drożdż, S.; Kwapień, J.; Minati, L.; Oświęcimka, P.; Stanuszek, M. Multiscale characteristics of the emerging global cryptocurrency market. Phys. Rep. 2021, 901, 1–82. [Google Scholar] [CrossRef]
  6. Ekström, E.; Lindberg, C. Optimal closing of a momentum trade. J. Appl. Probab. 2013, 50, 374–387. [Google Scholar] [CrossRef] [Green Version]
  7. Shiryaev, A.; Zhitlukhin, M. Optimal stopping problems for a Brownian motion with a disorder on a finite interval. arXiv 2012, arXiv:1212.3709. [Google Scholar]
  8. Zhitlukhin, M.; Shiryaev, A. Bayesian disorder problems on filtered probability spaces. Theory Probab. Its Appl. 2013, 57, 497–511. [Google Scholar] [CrossRef]
  9. Shiryaev, A.N.; Zhitlukhin, M.; Ziemba, W.T. When to sell Apple and the NASDAQ? Trading bubbles with a stochastic disorder model. J. Portf. Manag. 2014, 40, 54–63. [Google Scholar] [CrossRef]
  10. Chaim, P.; Laurini, M. Volatility and return jumps in Bitcoin. Econ. Lett. 2018, 173, 158–163. [Google Scholar] [CrossRef]
  11. Takaishi, T. Rough volatility of Bitcoin. Financ. Res. Lett. 2020, 32, 101379. [Google Scholar] [CrossRef]
  12. Drożdż, S.; Gebarowski, R.; Minati, L.; O świecimka, P.; Wątorek, M. Bitcoin market route to maturity? Evidence from return fluctuations, temporal correlations and multiscaling effects. Chaos 2018, 28, 071101. [Google Scholar] [CrossRef] [Green Version]
  13. Gerlach, J.-C.; Demos, G.; Sornette, D. Dissection of Bitcoin’s multiscale bubble history from January 2012 to February 2018. R. Soc. Open Sci. 2019, 6, 180643. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Liptser, R.S.; Shiriaev, A.N. Statistics of Random Processes: General Theory (Vol. 394); Springer: New York, NY, USA, 1977. [Google Scholar]
  15. RStudio Team. RStudio: Integrated Development for R; RStudio, Inc.: Boston, MA, USA, 2019. [Google Scholar]
Figure 1. Daily BTC/EUR prices from 29 April 2013 to 29 April 2021. The red triangles represent local peaks (drift changes from positive to negative), the blue triangles represent local troughs (drift changes from negative to positive) and the green points represent Bitcoin halving events. Note that the first halving event on 28 November 2012 is not displayed.
Figure 1. Daily BTC/EUR prices from 29 April 2013 to 29 April 2021. The red triangles represent local peaks (drift changes from positive to negative), the blue triangles represent local troughs (drift changes from negative to positive) and the green points represent Bitcoin halving events. Note that the first halving event on 28 November 2012 is not displayed.
Mathematics 10 00157 g001
Figure 2. The graph visualizes the Bitcoin price series and six different long momentum trades. The red points are the entry dates, the blue vertical line is the true drift change point, and the orange squares are the respective exit times of the trades using α = 2 .
Figure 2. The graph visualizes the Bitcoin price series and six different long momentum trades. The red points are the entry dates, the blue vertical line is the true drift change point, and the orange squares are the respective exit times of the trades using α = 2 .
Mathematics 10 00157 g002
Figure 3. The graph visualizes the process Φ (top pane) and the corresponding Bitcoin price series (bottom pane). The red point is the entry of the long momentum trade on 24 March 2017; the vertical blue line is the realization of the drift change time θ and the orange square is the optimal exit time, found when Φ crossed the barrier B, marked by the gray horizontal threshold.
Figure 3. The graph visualizes the process Φ (top pane) and the corresponding Bitcoin price series (bottom pane). The red point is the entry of the long momentum trade on 24 March 2017; the vertical blue line is the realization of the drift change time θ and the orange square is the optimal exit time, found when Φ crossed the barrier B, marked by the gray horizontal threshold.
Mathematics 10 00157 g003
Table 1. The table presents all key statistics corresponding to the six Bitcoin momentum trades that we introduced in the text. We estimated the parameters σ , μ 1 , μ 2 and λ based on Section 2.2. The column “Return” computes the return of the respective trades and the column “% of Maximum” is the performance measure to determine how much the exit price deviates from the peak of the Bitcoin bubble on 16 December 2017 (resp. on the exit date 29 April 2021).
Table 1. The table presents all key statistics corresponding to the six Bitcoin momentum trades that we introduced in the text. We estimated the parameters σ , μ 1 , μ 2 and λ based on Section 2.2. The column “Return” computes the return of the respective trades and the column “% of Maximum” is the performance measure to determine how much the exit price deviates from the peak of the Bitcoin bubble on 16 December 2017 (resp. on the exit date 29 April 2021).
α = 0.5
Entry σ μ 2 μ 1 λ BExitReturn% of Maximum
2016-07-090.450.25−0.120.451.902018-03-27967.92%37.92%
2017-01-110.430.24−0.120.451.932018-03-29690.01%35.10%
2017-03-240.430.24−0.120.451.932018-03-29569.55%35.10%
2017-07-160.420.27−0.130.452.382018-03-30232.98%33.78%
2017-09-140.430.30−0.150.453.112018-05-28130.02%36.81%
2017-11-120.430.33−0.160.453.852018-06-1013.05%34.76%
α = 1
Entry σ μ 2 μ 1 λ BExitReturn% of Maximum
2016-07-090.450.25−0.250.451.272017-03-2447.64%5.24%
2017-01-110.430.24−0.240.451.302018-02-05658.49%33.70%
2017-03-240.430.24−0.240.451.302018-02-05542.83%33.70%
2017-07-160.420.27−0.270.451.642018-02-05232.19%33.70%
2017-09-140.430.30−0.300.452.202018-02-05110.55%33.70%
2017-11-120.430.33−0.330.452.782018-03-2914.14%35.10%
α = 2
Entry σ μ 2 μ 1 λ BExitReturn% of Maximum
2016-07-090.450.25−0.490.450.892018-02-011153.49%44.50%
2017-01-110.430.24−0.490.450.922018-02-01901.76%44.50%
2017-03-240.430.24−0.490.450.932018-02-01749.01%44.50%
2017-07-160.420.27−0.540.451.232018-02-02319.55%42.56%
2017-09-140.430.30−0.610.451.772018-02-04150.18%40.04%
2017-11-120.430.33−0.660.452.362018-02-059.58%33.70%
α = 3
Entry σ μ 2 μ 1 λ BExitReturn% of Maximum
2016-07-090.450.25−0.740.450.782017-07-15195.92%10.51%
2017-01-110.430.24−0.730.450.822017-07-15136.50%10.51%
2017-03-240.430.24−0.730.450.822017-07-15100.43%10.51%
2017-07-160.420.27−0.810.451.152018-02-02319.55%42.56%
2017-09-140.430.30−0.910.451.762018-02-04150.18%40.04%
2017-11-120.430.33−0.980.452.452018-02-059.58%33.70%
α = 2
Entry σ μ 2 μ 1 λ BExitReturn% of Maximum
2020-10-160.430.26−0.510.245.692021-04-29356.18%82.77%
2020-12-110.430.27−0.540.249.532021-04-29196.82 %82.77%
2021-01-270.430.29−0.570.2461.892021-04-2976.41%82.77%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Eksi, Z.; Schreitl, D. Closing a Bitcoin Trade Optimally under Partial Information: Performance Assessment of a Stochastic Disorder Model. Mathematics 2022, 10, 157. https://doi.org/10.3390/math10010157

AMA Style

Eksi Z, Schreitl D. Closing a Bitcoin Trade Optimally under Partial Information: Performance Assessment of a Stochastic Disorder Model. Mathematics. 2022; 10(1):157. https://doi.org/10.3390/math10010157

Chicago/Turabian Style

Eksi, Zehra, and Daniel Schreitl. 2022. "Closing a Bitcoin Trade Optimally under Partial Information: Performance Assessment of a Stochastic Disorder Model" Mathematics 10, no. 1: 157. https://doi.org/10.3390/math10010157

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop