
This research attempts to fit a polynomial auto regression (PAR) model to intraday price data of four major cryptocurrencies and convert the model into a real-time profitable automated trading system. A PAR model was constructed to fit cryptocurrencies' behavior and to attempt to predict their short-term trends and trade them profitably. We used machine learning (ML) procedures enabling our system to train using minutes' data for six months and perform actual trading and reporting for the next six months. Results have shown that our system has dramatically outperformed the naive buy and hold (B & H) strategy for all four examined cryptocurrencies. Results show that our system's best performances were achieved trading Ethereum and Bitcoin and worse trading Cardano. The highest net profit (NP) for Bitcoin trades was 15.58%, achieved by using 67 minutes bars to form the prediction model, compared to −44.8% for the B & H strategy. Trading Ethereum, the system generated 16.98% NP, compared to −33.6% for the B & H strategy, 61 minutes bars. Moreover, the highest NPs achieved trading Binance Coin (BNB) and Cardano were 9.33% and 4.26%, compared to 0.28% and −41.8% for the B & H strategy, respectively. Furthermore, the system better predicted Ethereum and Cardano uptrends than downtrends while it better predicted Bitcoin and BNB downtrends than uptrends.
Citation: Gil Cohen. Intraday trading of cryptocurrencies using polynomial auto regression[J]. AIMS Mathematics, 2023, 8(4): 9782-9794. doi: 10.3934/math.2023493
[1] | Wenhui Feng, Xingfa Zhang, Yanshan Chen, Zefang Song . Linear regression estimation using intraday high frequency data. AIMS Mathematics, 2023, 8(6): 13123-13133. doi: 10.3934/math.2023662 |
[2] | Zubair Ahmad, Zahra Almaspoor, Faridoon Khan, Sharifah E. Alhazmi, M. El-Morshedy, O. Y. Ababneh, Amer Ibrahim Al-Omari . On fitting and forecasting the log-returns of cryptocurrency exchange rates using a new logistic model and machine learning algorithms. AIMS Mathematics, 2022, 7(10): 18031-18049. doi: 10.3934/math.2022993 |
[3] | Xin Liang, Xingfa Zhang, Yuan Li, Chunliang Deng . Daily nonparametric ARCH(1) model estimation using intraday high frequency data. AIMS Mathematics, 2021, 6(4): 3455-3464. doi: 10.3934/math.2021206 |
[4] | Carey Caginalp, Gunduz Caginalp . Establishing cryptocurrency equilibria through game theory. AIMS Mathematics, 2019, 4(3): 420-436. doi: 10.3934/math.2019.3.420 |
[5] | Carey Caginalp . A dynamical systems approach to cryptocurrency stability. AIMS Mathematics, 2019, 4(4): 1065-1077. doi: 10.3934/math.2019.4.1065 |
[6] | Kai Xiao . Risk-seeking insider trading with partial observation in continuous time. AIMS Mathematics, 2023, 8(11): 28143-28152. doi: 10.3934/math.20231440 |
[7] | Kai Xiao, Yonghui Zhou . Linear Bayesian equilibrium in insider trading with a random time under partial observations. AIMS Mathematics, 2021, 6(12): 13347-13357. doi: 10.3934/math.2021772 |
[8] | Huayu Sun, Fanqi Zou, Bin Mo . Does FinTech drive asymmetric risk spillover in the traditional finance?. AIMS Mathematics, 2022, 7(12): 20850-20872. doi: 10.3934/math.20221143 |
[9] | Erlin Guo, Cuixia Li, Patrick Ling, Fengqin Tang . Convergence rate for integrated self-weighted volatility by using intraday high-frequency data with noise. AIMS Mathematics, 2023, 8(12): 31070-31091. doi: 10.3934/math.20231590 |
[10] | Stelios Arvanitis, Michalis Detsis . Mild explocivity, persistent homology and cryptocurrencies' bubbles: An empirical exercise. AIMS Mathematics, 2024, 9(1): 896-917. doi: 10.3934/math.2024045 |
This research attempts to fit a polynomial auto regression (PAR) model to intraday price data of four major cryptocurrencies and convert the model into a real-time profitable automated trading system. A PAR model was constructed to fit cryptocurrencies' behavior and to attempt to predict their short-term trends and trade them profitably. We used machine learning (ML) procedures enabling our system to train using minutes' data for six months and perform actual trading and reporting for the next six months. Results have shown that our system has dramatically outperformed the naive buy and hold (B & H) strategy for all four examined cryptocurrencies. Results show that our system's best performances were achieved trading Ethereum and Bitcoin and worse trading Cardano. The highest net profit (NP) for Bitcoin trades was 15.58%, achieved by using 67 minutes bars to form the prediction model, compared to −44.8% for the B & H strategy. Trading Ethereum, the system generated 16.98% NP, compared to −33.6% for the B & H strategy, 61 minutes bars. Moreover, the highest NPs achieved trading Binance Coin (BNB) and Cardano were 9.33% and 4.26%, compared to 0.28% and −41.8% for the B & H strategy, respectively. Furthermore, the system better predicted Ethereum and Cardano uptrends than downtrends while it better predicted Bitcoin and BNB downtrends than uptrends.
Intraday trading is very-short-term trading that is based on minutes of position holding, and it is known to require special training and experience. Intraday trading can be performed manually or automatically using a preprogrammed algorithm that detects changes in a financial asset's pricing using artificial intelligence (AI) and machine learning (ML) techniques. Intraday trading challenges increase as the asset's volatility grows and demand algorithms with learning and optimization abilities. Because of the frantic price movement, not many researchers have attempted the challenge to develop and test intraday trading platforms for cryptocurrencies. In this study, we programmed, optimized and tested the ability of polynomial auto regressions (PARs) to successfully predict short-term price trends of cryptocurrencies that result in a profitable trading strategy. The cryptocurrencies that were used are Bitcoin, Ethereum, Binance Coin (BNB) and Cardano.
Artificial neural networks (ANN) are known to be able to provide an abnormal return by using technical indicators as predictors in stock markets (see, for example, Fischer and Krauss [10]). Those methodologies were adopted by researchers to predict cryptocurrency future prices. Jay et al. [18] predicted cryptocurrency prices using a stochastic model that induces layer-wise randomness in the observed feature activations of neural networks (NN). Their results show that the proposed model can better predict cryptocurrencies' future prices than deterministic models. Senthuran and Halgamuge [28] offered cryptocurrency price forecasting methodology using an ML algorithm and blockchain information. They concluded that prediction performance is high for both currencies when the blockchain data is used together with Bitcoin and Ethereum prices. Moreover, they documented that the Ethereum currency has the highest percentage of prediction accuracy and the lowest error rate compared to Bitcoin. NN use learning filters that are generated in each of the network layers to detect a predetermined signal at any given layer and to send real-time information to the system that performs automated trading decisions. Shahariari et al. [27] constructed an ordinal partition network using price signals to investigate cryptocurrencies' fluctuations. They investigated the permutation entropy and clustering coefficient and concluded that the global clustering coefficient using a minimum function for triplets in a loop in one direction has the highest predictive power.
In the current research, we used one year of minute-by minute price data from the beginning of 1.12.2021 till the end of November 2022 to construct our trading platform. The data was split into six months of training and six months of actual trading and results reporting. We used ML procedures based on polynomial autoregression to predict the minute behavior of cryptocurrencies. The estimation of the parameters of the projected polynomial autoregressions is a non-linear least-squares problem. A PAR model for a stochastic process is defined in Eq 1:
Xi+1=μ+αXi+βX2i+ϵi+1 | (1) |
where ϵi follows an independent distribution process with zero mean and finite variance.
The use of PAR models to make predictions is common in the scientific world because of their relative implementation simplicity compared to other non-linear models due to their parameter's linearity characteristics. PAR was used in a variety of academic fields such as communication (see, for example, Fernandes et al. [9], biological control systems (see, for example, Gruber et al. [14]) and energy (see, for example, Hong et al. [16]). Karakuş et al. [19] used the Kuruoğlu [21] model (presented in Eq 2) to predict the wind speed on the current day based on the previous day and concluded that the PAR model outperformed other models in both speed and power of predictions.
X(I)=μ+∑kia(1)ix(I−i)+∑ki∑kja(2)i,jx(I−i)x(I−j)+⋯+∑k,…i,..a(p)i,...x(I−i)⋯+ϵ(I) | (2) |
where ϵ(I) is an independent and identically distributed sequence, P = the non-linearity degree, k = the Autoregression order.
PAR models are also used for financial research. De Luna [6] argued that PAR could successfully be used to forecast time series trends. He used artificial Neural Networks (NN) to avoid an explosion of the parameters when considering a large number of lags. Furthermore, he demonstrated the methodology with real data for three-month US Treasury Bills. He concluded that that the stationarity of PAR is of no concern if they are considered not as models for stochastic process Xi but as approximation of the optimal predictor E(Xi+h⋮Xi,….) defined by the minimum mean-squared error (MSE) of prediction. They offered a family of predictors Xi+h,h>0, and the model he used is described in Eq 3:
Xi:h=β0+β1Xi+β2Xi−1+β3X2i+β4X2i−1+β5XiXi−1. | (3) |
In practice, the optimal number of regressors can be decided using machine learning (ML) that searches for the best predictive model during the learning period. Moreover, in time series autoregression analysis, a lag operator is needed to produce forecasts. A polynomial lag operator can be used within an ARMA (Autoregressive Moving Average) of orders p, q (Eq 4).
Xt=∑pj=1∅jXt−j+∑qj=1θjωt−j+ωt. | (4) |
In lag operator notation, the ARMA process is defined as
∅(B)Xt=θ(B)ωt,t=1,….,n. | (5) |
The characteristic polynomial can be expressed as
∅(B)=∏pi=1(1−αiB) | (6) |
where αi are the reciprocal roots.
In this research, we constructed an optimized trading platform using ML procedures. We aimed to examine whether the polynomial model can fit minute data of cryptocurrencies, enabling the programmed trading platform to generate profits that outperform the simple Buy and Hold (B & H) strategy. We find that it is possible to intraday trade cryptocurrencies using a polynomial model. Our system has outperformed the B & H strategy for all examined cryptocurrencies.
ML has been used before to try to identify cryptocurrencies' price direction. Balcilar et al. [1] discussed the predictability of Bitcoin returns and volatility based on transaction volume. They found that when extreme events are excluded, volume is an important predictor of price. In studying Bitcoin's price dynamics and speculative trading, Blau [2] concluded that speculative behavior could not be directly linked to the unusual volatility of the Bitcoin market. Griffin and Shams [13] examined whether Tether, which is pegged to the U.S. dollar, influenced Bitcoin and other cryptocurrencies' prices during the 2017 boom. They found that Tether purchases follow market downtrends, resulting in an increase in Bitcoin price. In addition, they suggested that there are insufficient Tether reserves before the month ends. Liu and Tsyvinski [23] argued that cryptocurrencies' returns can be predicted by factors that are specific to the cryptocurrency market. They conducted a network factors analysis that captures the production along with the user adoption process of digital currencies and found that there is a strong time-series momentum effect and that proxies that capture investors' attention can forecast the future price trends of cryptocurrencies. Caporale and Plastun [5] examined the day-of-the-week effect in the cryptocurrency market and found that most cryptocurrencies such as Litecoin, Ripple and Dash do not exhibit this anomaly. The only exception is Bitcoin, for which returns on Mondays are significantly higher than those on the other days of the week.
Brandvold et al. [4] investigated the role of various Bitcoin exchanges in the price discovery process, noting that the information shared is dynamic and evolves significantly over time. Feng et al. [8] found evidence of informed trading in the Bitcoin market prior to major events. Moreover, when examining the timing of informed trades, they noticed that informed traders prefer to build their positions two days before large positive events and one day before large negative events. This result serves as proof of the market inefficiency that differentiates uninformed traders from informed traders of Bitcoin.
Some trading algorithms use only market data, and some combine market data with social media data (see, for example, Liu [22], Sohangir et al. [29]). The social media information is extracted mainly from Google and Twitter along with popular investors' idea exchange platforms like Seeking Alpha1 and Investopedia2. Since cryptocurrencies are relatively new, there is little research on the factors or tools that can help people invest in them. The first group of studies linked the price of Bitcoin to social networks. For example, Kim et al. [20] tried to predict fluctuations in the prices of cryptocurrencies by analyzing comments in online cryptocurrency communities. They found that positive user comments significantly affected the price fluctuations of Bitcoin, whereas the prices of two other cryptocurrencies, Ripple (XRP) and Ethereum, were strongly influenced by negative user comments and replies. Garcia and Schweizer [12] also demonstrated the existence of a relationship between returns and signals about the volume of trade, and Twitter valence and polarization. Matta et al. [24] studied the existing relationship between Bitcoin's trading volumes and the number of queries on Google. They reported significant cross-correlation values, demonstrating that the volume of searches could predict the trading volume of Bitcoin. Detzel et al. [7] examined trading strategies based on daily ratios of prices to their moving averages for Bitcoin and found that a trading strategy that is based on this concept beats the naïve strategy of Buy and Hold (B & H). Unlike Detzel et al. [7] we use intraday data of five major cryptocurrencies. Shorter time frames have a different characteristic than daily data since they are not subjected to overnight new economic data. Moreover, intraday trading strategies should capture changes in the asset's price trends in shorter time frames measured in minutes not days. In addition, in the following research, we documented that the relative strength index (RSI) based trading system has beaten the B & H strategy and can be used by intraday traders both human and robotic. Although the RSI and Moving Average (MA) are both momentum oscillators, they measure different factors. The RSI uses average price gains and losses over a given period to indicate whether a security is overbought or oversold in relation to recent price levels while the MA-based strategy measures the current price against its periodic moving average.
Since financial asset price movements are very complex and affected by many factors, traders and researchers are using Support Vector Machines (SVM) for algorithmic detection of investment opportunities. The method that was developed by Vapnik [30] is a machine learning technique based on statistical learning theory and structural risk minimization that is commonly used for classification (see, for example, Jan [17], Xiao et al. [31]). In addition to SVMs, long-short term memory (LSTM) is also being used for algorithmic trading because it can selectively decide whether historic data is important or not important as basis information for future price forecasting (see, for example, Nelson et al. [25]). Borovkova and Tsiamas [3] ensembled the LSTM model for intraday stock predictions, using a large variety of technical analysis indicators as network inputs. They evaluate the predictive power of their model on several US large-cap stocks and benchmark it against lasso and ridge logistic classifiers. The proposed model is found to perform better than the benchmark models or equally weighted ensembles. Fister et al. [11] looked for a profitable trading strategy for stocks that experience low frequency release of new information. They formed LSTM networks that included trading patterns that are based on universal decision factors and stock specific factors. They documented that their LSTM model significantly outperformed traditional trading strategies. Hansun et al. [15] proposed a three-layer architecture for the regression prediction models. They found that LSTM and the gated recurrent unit (GRU) have the same price prediction accuracy of major cryptocurrencies. However, in terms of execution speed, GRU is slightly better than LSTM. Oyedele et al. [26] assessed the performance of deep learning (DL) models on six cryptocurrencies. Their results show that the convolutional neural networks (CNN) model has the highest explained variance score and lowest percentage error. They concluded that the CNN models are reliable for cryptocurrency daily closing price prediction.
Our data consists of twelve months' minutes' prices beginning at 1.12.2021minute-by -minute bars3 of the four most popular cryptocurrencies. The data was split into two periods: six months of training (December 2021–May 2022) and six months of actual trading and documenting the results (Jun 2022–November 2022). The autoregression model is described in Eq 7.
3A bar contains information about the open/close and high/low prices.
Xi+1=α+α1(β1Xi+β2Xi−n)+α2(β3Xi+β4Xi−n)2+α3(β4Xi+β5Xi−n)3 | (7) |
where n = the number of minutes of lag.
Our trading platform initially estimates and draws a polynomial model estimation line that best fits the data. Then, the system generates long and short signals according to the real-time price relative to the estimated line and enters trades accordingly. A long signal is generated when the price crosses the estimation line to the upside and a short signal is generated when prices cross the line to the downside. The methodology is illustrated in Figure 1.
To minimize false entries to each trade, our system determined and optimized a minimum buffer above and below the prediction line (δ). The entry to a long/short position is defined in Eqs 8 and 9.
Long entry rule:
Pi>Poli+δ. | (8) |
Short entry rule:
Pi<Poli+δ | (9) |
where Pi = the minute closing price, Poli = the polynomial prediction line, δ = minimum buffer.
Our starting point is a $100, 000 portfolio value, enabling us to calculate the net profit (NP), profit factor (PF) and percent of profitable trades (PP) of six months of trading. Moreover, we calculate the percentage of returns and compare it to the simple buy and hold (B & H) strategy to examine the ability of our systems to outperform the B & H strategy. Moreover, we separated long from short positions to examine the abilities of the AI to trade profitably long versus short positions. The split between long and short trades was done for each cryptocurrency using the time frame that maximized NP.
NP is the dollar value of the total net profit generated by the trading system. The PF is defined as gross profits divided by gross losses. The result indicates the difference between the system's gains and losses. For example, if the profit factor is equal to 1.2, the system generated 20% more profits than losses. The PP is the percentage number of winning trades out of the entire set of trades generated by the system. If it is above 50 percent, the trading system has generated more winning trades than losing trades. However, this does not mean that the net profit of all trades is positive and vice versa. A score of less than 50 percent does not mean that the trading system is losing money. Although one might assume that the three profit indicators (NP, PF and PP) move together, in fact, they can vary dramatically and therefore may confuse investors and algorithmic traders. Each individual investor should pick at least one parameter as his/her target function according to the investor's risk aversion. For example, a more risk-averse investor will probably choose to maximize PP rather than maximize the NP, while a risk seeker investor will prefer maximizing NP or PF as his/her primary target. The optimization process is presented in Figure 2.
Figure 2 demonstrates that setups particles (A, B, C, D) are entered randomly into the system calculating initial NP, PP, and PF, then the system alters each particle at a time to reach the maximation of the target function. If the maximum is achieved, the system halts; otherwise, the setup's particles continue to change. The system is trained to generate long and short signals in a sequence, meaning that it will stay in a certain position (long or short) until an opposite signal appears.
Our trading system used six months of training to identify the best fit polynomial model for the examined cryptocurrencies. Moreover, the system has optimized the percentage deviation from the prediction line that will guide the trade entrance (long or short). In this regard, the optimal δ4 was found to be 1.5 % for all four cryptocurrencies. Table 1 summarizes the trading performance according to our system for Bitcoin and Ethereum.
4 δ = the percentage gap from the prediction line.
Minutes | Bitcoin | Minutes | Ethereum | ||
45 |
NP PF PP |
876.8 1.05 55.42 |
45 |
NP PF PP |
7, 019 1.30 56.63 |
50 |
NP PF PP |
4, 991 1.35 54.67 |
50 |
NP PF PP |
9, 812 1.45 56.16 |
55 |
NP PF PP |
5, 792 1.43 61.04 |
55 |
NP PF PP |
16, 476 1.84 60.56 |
60 |
NP PF PP |
8, 549 1.67 63.38 |
58 |
NP PF PP |
15, 802 1.81 61.19 |
65 |
NP PF PP |
12, 355 2.04 62.69 |
59 |
NP PF PP |
14, 640 1.86 61.54 |
66 |
NP PF PP |
14, 940 2.09 64.2 |
60 |
NP PF PP |
14, 278 1.84 61.9 |
67 |
NP PF PP |
15, 580** 2.30** 71.67** |
61 |
NP PF PP |
16, 980** 2.04** 66.67** |
68 |
NP PF PP |
15, 003 2.11 69.73 |
62 |
NP PF PP |
14, 133 1.83 66.62 |
69 | NP PF PP |
7, 041 1.53 64.4 |
65 |
NP PF PP |
9, 532 1.47 56.63 |
70 |
NP PF PP |
8, 288 1.72 62.71 |
70 |
NP PF PP |
12, 505 1.73 60.38 |
75 |
NP PF PP |
6, 526 1.56 60.57 |
75 |
NP PF PP |
10, 706 1.65 58.9 |
80 |
NP PF PP |
2, 564 1.23 56.4 |
80 |
NP PF PP |
8, 408 1.52 56.7 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. Minutes = the number of minutes trading bars used to form the prediction model. ** = The highest score for each cryptocurrency. The results presented in the Table contain all trades including long and short trades. |
Table 1 shows that the highest NP for Bitcoin trades, $15, 580 (15.58%), was achieved using 67 minutes bars. This result dramatically outperformed the B & H strategy trading Bitcoin from the beginning of June 2022 till the end of November 2022, which achieved −44.8%. The 67-minutes setup also produced the highest FF (2.3) and PP 71.67%. The best NP, for Ethereum trading, was $16, 980 (16.98%), compared to −33.6% for the B & H strategy, using 61 minutes to form the best prediction line. This setup also achieved the highest PF (2.04) and PP (66.67%). In Table 2, we separate long trades from short trades to be able to identify which price trend is better predicted by our system. Moreover, Table 2 reports the result of the trading using the best setup for each crypto (67 minutes for Bitcoin and 61 minutes for Ethereum).
Position | Bitcoin | Ethereum | |
Long |
NP PF PP |
7, 723 2.73 70 |
10, 478 2.56 67.74 |
Short |
NP PF PP |
7, 857 3.44 73.33 |
6, 502 1.67 65.63 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. For Bitcoin trading, 67 minutes setup was used, and for Ethereum, 61 minutes setup was used. Long = an uptrend buy position. Short = a downtrend sell position. |
Table 2 demonstrates that for Bitcoin trades, the algorithm has achieved better results for short trades than for long trades. Short trades of Bitcoin have achieved 3.44 PF and 73.33% PP compared to 2.73 PF and 70% PP for long trades. With respect to Ethereum, the system better performed for long trades rather than for short trades, resulting in 10.478% NP compared to 6.5%. Table 3 shows the result of the optimized trading platform for BNB and Cardano trading.
Minutes | BNB | Minutes | Cardano | ||
60 |
NP PF PP |
−794 0.95 56.25 |
40 |
NP PF PP |
−1, 246 0.90 54.5 |
61 |
NP PF PP |
684 1.05 58.82 |
45 |
NP PF PP |
1, 406 1.12 62.2 |
62 |
NP PF PP |
9, 330** 1.75** 67.6** |
46 |
NP PF PP |
1, 211 1.10 62.8 |
63 |
NP PF PP |
9, 272 1.73 65.6 |
47 |
NP PF PP |
4, 259** 1.38 66.7** |
64 |
NP PF PP |
6, 906 1.54 60 |
48 |
NP PF PP |
3, 406 1.29 65.12 |
65 |
NP PF PP |
6, 906 1.54 60 |
65 |
NP PF PP |
2, 946 1.30 63.3 |
70 |
NP PF PP |
2, 717 1.19 61.3 |
70 |
NP PF PP |
3, 010 1.37 58.3 |
75 |
NP PF PP |
8, 300 1.65 65.5 |
75 |
NP PF PP |
3, 676 1.47** 57.1 |
80 |
NP PF PP |
2, 047 1.56 52 |
80 |
NP PF PP |
2, 335 1.26 66.3 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. Minutes = the number of minutes trading bars used to form the prediction model. **= The highest score for each cryptocurrency. The results presented in the Table contain all trades including long and short trades. |
Table 4 shows that the system performed much better for BNB short trades than for long trades, resulting in 7.94% of NP and 3.05 PF for short trades compared to only 1.38% NP and 1.16 PF for long trades. With respect to Cardano, the opposite occurred. As for Ethereum, the system achieved better results in long trading Cardano than short trading, achieving 2.326% NP and 1.39 PF for long trades compared to 1.93% NP and 1.35 PF for short trades. Figure 3 is graphing the dollar value NP for the examined cryptocurrencies with respect to the number of minute configurations of the polynomial model.
Position | BNB | Cardano | |
Long |
NP PF PP |
1, 386 1.16 58.8 |
2, 326 1.39 73.9 |
Short |
NP PF PP |
7, 944 3.05 76.5 |
1, 933 1.35 59 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. For BNB trading, 62 minutes of setup was used, and for Cardano, 47 minutes of setup was used. Long = an uptrend buy position. Short = a downtrend sell position. |
Figure 3 demonstrates that our system has achieved the best results trading Ethereum and Bitcoin and was worse trading Cardano. However, as pointed out before, the system has outperformed the B & H strategy for all four cryptocurrencies. Figure 3 also points out that every crypto best-performing model relies on a different number of minutes. Moreover, three out of four currencies experience a signal peak performance while only BNB experiences double peaks at 65- and 75-minute models.
In this research, we attempted to fit a PAR model to minute price data of four major cryptocurrencies. The first intuition that raised this possibility is the visualization of the data that resembled a polynomial process. The challenge was not only to examine if a polynomial autoregression fits the data but to be able to convert it into a real trading algorithmic platform. We used ML procedures, enabling our system to train for six months and perform actual trading and reporting for the next six months. Results have shown that for all four examined cryptocurrencies, our system has dramatically outperformed the naive B & H strategy. Our system performed the best trading Ethereum and Bitcoin and worse trading Cardano. Trading Ethereum, the system generated 16.98% NP, compared to −33.6% for the B & H strategy. Trading Bitcoin, the system generated 15.58% NP, compared to −44.8% for the B & H strategy. Moreover, the system located different best setups for each crypto. Furthermore, the system better performed Ethereum and Cardano long trades than short trades, while it better performed Bitcoin and BNB short trades than long trades.
This research was supported by Western Galilee Academic College.
The Author declares that he has no conflicts of interests.
[1] |
M. Balcilar, E. Bouri, R. Gupta, D. Roubaud, Can volume predict Bitcoin returns and volatility? A quantiles-based approach, Econ. Model., 64 (2017), 74–81. https://doi.org/10.1016/j.econmod.2017.03.019 doi: 10.1016/j.econmod.2017.03.019
![]() |
[2] |
B. M. Blau, Price dynamics and speculative trading in Bitcoin, Res. Bus. Financ., 41 (2017), 493–499. https://doi.org/10.1016/j.ribaf.2017.05.010 doi: 10.1016/j.ribaf.2017.05.010
![]() |
[3] |
S. Borovkova, I. Tsiamas, An ensemble of LSTM neural networks for high-frequency stock market classification, J. Forecasting, 38 (2019), 600–619. https://doi.org/10.1002/for.2585 doi: 10.1002/for.2585
![]() |
[4] |
M. Brandvold, P. Molner, K. Vagstad, O. C. Andreas Valstad, Price discovery on Bitcoin exchanges, J. Int. Financ. Markets Institutions Money., 36 (2015), 18–35. https://doi.org/10.1016/j.intfin.2015.02.010 doi: 10.1016/j.intfin.2015.02.010
![]() |
[5] |
M. G. Caporale, A. Plastun, The day of the week effect in the cryptocurrency market, Financ. Res. Lett., 31 (2019), 258–269. https://doi.org/10.1016/j.frl.2018.11.012 doi: 10.1016/j.frl.2018.11.012
![]() |
[6] |
X. De Luna, Projected polynomial autoregression for prediction of stationary time series, J. Appl. Stat., 25 (1998), 763–775. https://doi.org/10.1080/02664769822756 doi: 10.1080/02664769822756
![]() |
[7] |
A. Detzel, H. Liu, J. Strauss, G. Zhou, Y. Zhu, Learning and predictability via technical analysis: Evidence from bitcoin and stocks with hard-to-value fundamentals, Financ. Manage., 50 (2021), 107–137. https://doi.org/10.1111/fima.12310 doi: 10.1111/fima.12310
![]() |
[8] |
W. Feng, Y. Wang, Z. Zang, Informed trading in the Bitcoin market, Financ. Res. Lett., 26 (2018), 63–70. https://doi.org/10.1016/j.frl.2017.11.009 doi: 10.1016/j.frl.2017.11.009
![]() |
[9] |
C. Fernandes, J. Mota, G. Favier, MIMO Volterra modeling for nonlinear communication channels, Learn. Nonlinear Models, 2 (2010), 71–92. https://doi.org/10.21528/LNLM-vol8-no2-art1 doi: 10.21528/LNLM-vol8-no2-art1
![]() |
[10] |
T. Fischer, C. Krauss, Deep learning with long short-term memory networks for financial market predictions, Eur. J. Oper. Res., 270 (2018), 654–669. https://doi.org/10.1016/j.ejor.2017.11.054 doi: 10.1016/j.ejor.2017.11.054
![]() |
[11] |
D. Fister, M. Perc, T. D. Jagric, Two robust long short-term memory frameworks for trading stocks, Appl. Intell., 51 (2021), 7177–7195. https://doi.org/10.1007/s10489-021-02249-x doi: 10.1007/s10489-021-02249-x
![]() |
[12] |
D. Garcia, F. Schweizer, Social signals and algorithmic trading of Bitcoin, R. Soc. Open Sci., 2 (2015). https://doi.org/10.1098/rsos.150288 doi: 10.1098/rsos.150288
![]() |
[13] | J. M. Griffin, M. Shams, Is Bitcoin Really Untethered? J. Financ., 52 (2020), 57–87. |
[14] |
J. Gruber, C. Bordons, R. Bars, R. Haber, Nonlinear predictive control of smooth nonlinear systems based on Volterra models, Application to a pilot plant, Int. J. Robust Nonlinear Control., 20 (2010), 1817–1835. https://doi.org/10.1002/rnc.1549 doi: 10.1002/rnc.1549
![]() |
[15] |
S. Hansun, A. Wicaksana, A. Q. M, Khaliq, Multivariate cryptocurrency prediction: Comparative analysis of three recurrent neural networks approaches, J. Big Data., 9 (2022). https://doi.org/10.1186/s40537-022-00601-7 doi: 10.1186/s40537-022-00601-7
![]() |
[16] |
T. Hong, P. Pinson, S. Fan, Global energy forecasting competition 2012, Int. J. Forecast, 30 (2014), 357–363. https://doi.org/10.1016/j.ijforecast.2013.07.001 doi: 10.1016/j.ijforecast.2013.07.001
![]() |
[17] |
C. L. Jan, An effective financial statements fraud detection model for the sustainable development of financial markets: Evidence from Taiwan, Sustainability, 10 (2018), 513. https://doi.org/10.3390/su10020513 doi: 10.3390/su10020513
![]() |
[18] | P. Jay, V. Kalariya, P. Parmar, S. Tanwar, N. Kumar, M. Alazab, Stochastic neural networks for cryptocurrency price prediction. IEEE Access., 8 (2020), 28804–82818. https://doi.org/10.1109/ACCESS.2020.2990659 |
[19] |
O. Karakuş, E. E. Kuruoğlu, M. A. Altinkaya, One-day ahead wind speed/power prediction based on polynomial autoregressive model, IET Institution Eng. Technol., 11 (2017), 1430–1439. https://doi.org/10.1049/iet-rpg.2016.0972 doi: 10.1049/iet-rpg.2016.0972
![]() |
[20] |
Y. B. Kim, J. G. Kim, W. Kim, J. H. Im, T. H. Kim, S. J. Kang, et al., Predicting fluctuations in cryptocurrency transactions based on user comments and replies, PLoS ONE, 11 (2016). https://doi.org/10.1371/journal.pone.0161197 doi: 10.1371/journal.pone.0161197
![]() |
[21] |
E. Kuruoğlu, Nonlinear least LP-norm filters for nonlinear autoregressive α-stable processes. Digit. Signal Process, 2 (2002), 19–142. https://doi.org/10.1006/dspr.2001.0416 doi: 10.1006/dspr.2001.0416
![]() |
[22] |
X. Liu, Target and position article - Analyzing the impact of user-generated content on B2B Firms' stock performance: Big data analysis with machine learning methods, Ind. Market. Manag., 86 (2020), 30–39. https://doi.org/10.1016/j.indmarman.2019.02.021 doi: 10.1016/j.indmarman.2019.02.021
![]() |
[23] |
Y. Liu, A. Tsyvinski, Risks and Returns of Cryptocurrency, Rev. Financ. Stud., 34 (2021), 2689–2727. https://doi.org/10.1093/rfs/hhaa113 doi: 10.1093/rfs/hhaa113
![]() |
[24] | M. Matta, L. Lunesu, M. Marcesi, The predictor impact of Web search media on Bitcoin trading volumes, In 7th international joint conference on knowledge discovery, knowledge engineering and knowledge management. 2015. https://doi.org/10.5220/0005618606200626 |
[25] | D. M. Q. Nelson, A. C. M. Pereira, D. Oliveira, Stock market's price movement prediction with LSTM neural networks, International Joint Conference on Neural Networks (IJCNN), 1419–1426, 2017. https://doi.org/10.1109/IJCNN.2017.7966019 |
[26] |
A. A. Oyedele, A. O. Ajayi, L. O. Oyedele, S. A. Bello, K. O. Jimoh, Performance evaluation of deep learning and boosted trees for cryptocurrency closing price prediction, Expert Syst. Appl., 213 (2023), https://doi.org/10.1016/j.eswa.2022.119233 doi: 10.1016/j.eswa.2022.119233
![]() |
[27] |
Z. Shahriari, F. Nazarimehr, K. Rajagopal, S. Jafari, M. Perc, M. Svetec, Cryptocurrency price analysis with ordinal partition networks, Appl. Math. Comput., 430 (2022). https://doi.org/10.1016/j.amc.2022.127237 doi: 10.1016/j.amc.2022.127237
![]() |
[28] | G. Senthuran, M. Halgamuge, Prediction of Cryptocurrency Market Price Using Deep Learning and Blockchain Information: Bitcoin and Ethereum, New York, NY, USA, Taylor & Francis, 349–364, 2019. https://doi.org/10.1201/9780429674457-15 |
[29] |
S. Sohangir, D. Wang, A. Pomerantes, T. M. Khoshgoftaar, Big Data: Deep Learning for financial sentiment analysis, J. Big Data, 5 (2018). https://doi.org/10.1186/s40537-017-0111-6 doi: 10.1186/s40537-017-0111-6
![]() |
[30] | V. N. Vapnik, The Nature of Statistical Learning Theory, New York, Springer, 1995. https://doi.org/10.1007/978-1-4757-2440-0 |
[31] |
C. Xiao, W. Xia, J. Jiang, Stock price forecast based on combined model of ARI-MA-LS-SVM, Neural Comput. Appl., 32 (2020), 5379–5388. https://doi.org/10.1007/s00521-019-04698-5 doi: 10.1007/s00521-019-04698-5
![]() |
1. | Mirinal Kapri, Tushar Dimri, Pushkar Singh, Anurag Maletha, Dibyahash Bordoloi, Manisha Aeri, 2024, Quantitative Insights into Breakout and Reversal Trading Strategies: A Comprehensive Analysis for Algorithmic Trading in Financial Markets, 979-8-3503-7105-5, 524, 10.1109/ICDT61202.2024.10488993 | |
2. | Om Mengshetti, Kanishk Gupta, Nilima Zade, Ketan Kotecha, Siddhanth Mutha, Gayatri Joshi, Synergizing quantitative finance models and market microstructure analysis for enhanced algorithmic trading strategies, 2024, 10, 21998531, 100334, 10.1016/j.joitmc.2024.100334 | |
3. | Ebenezer Fiifi Emire Atta Mills, Yuexin Liao, Zihui Deng, Data-Driven Price Trends Prediction of Ethereum: A Hybrid Machine Learning and Signal Processing Approach, 2024, 20967209, 100231, 10.1016/j.bcra.2024.100231 | |
4. | Saurabh Singh, Anil Pise, Byungun Yoon, Prediction of bitcoin stock price using feature subset optimization, 2024, 10, 24058440, e28415, 10.1016/j.heliyon.2024.e28415 | |
5. | Yu. V. Bezsmolnyi, M. M. Seniv, A decision support software system for cryptocurrency traders on the Trading View platform, 2024, 6, 27071898, 9, 10.23939/ujit2024.01.009 | |
6. | Gil Cohen, Avishay Aiche, Intelligent forecasting in bitcoin markets, 2025, 71, 15446123, 106487, 10.1016/j.frl.2024.106487 |
Minutes | Bitcoin | Minutes | Ethereum | ||
45 |
NP PF PP |
876.8 1.05 55.42 |
45 |
NP PF PP |
7, 019 1.30 56.63 |
50 |
NP PF PP |
4, 991 1.35 54.67 |
50 |
NP PF PP |
9, 812 1.45 56.16 |
55 |
NP PF PP |
5, 792 1.43 61.04 |
55 |
NP PF PP |
16, 476 1.84 60.56 |
60 |
NP PF PP |
8, 549 1.67 63.38 |
58 |
NP PF PP |
15, 802 1.81 61.19 |
65 |
NP PF PP |
12, 355 2.04 62.69 |
59 |
NP PF PP |
14, 640 1.86 61.54 |
66 |
NP PF PP |
14, 940 2.09 64.2 |
60 |
NP PF PP |
14, 278 1.84 61.9 |
67 |
NP PF PP |
15, 580** 2.30** 71.67** |
61 |
NP PF PP |
16, 980** 2.04** 66.67** |
68 |
NP PF PP |
15, 003 2.11 69.73 |
62 |
NP PF PP |
14, 133 1.83 66.62 |
69 | NP PF PP |
7, 041 1.53 64.4 |
65 |
NP PF PP |
9, 532 1.47 56.63 |
70 |
NP PF PP |
8, 288 1.72 62.71 |
70 |
NP PF PP |
12, 505 1.73 60.38 |
75 |
NP PF PP |
6, 526 1.56 60.57 |
75 |
NP PF PP |
10, 706 1.65 58.9 |
80 |
NP PF PP |
2, 564 1.23 56.4 |
80 |
NP PF PP |
8, 408 1.52 56.7 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. Minutes = the number of minutes trading bars used to form the prediction model. ** = The highest score for each cryptocurrency. The results presented in the Table contain all trades including long and short trades. |
Position | Bitcoin | Ethereum | |
Long |
NP PF PP |
7, 723 2.73 70 |
10, 478 2.56 67.74 |
Short |
NP PF PP |
7, 857 3.44 73.33 |
6, 502 1.67 65.63 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. For Bitcoin trading, 67 minutes setup was used, and for Ethereum, 61 minutes setup was used. Long = an uptrend buy position. Short = a downtrend sell position. |
Minutes | BNB | Minutes | Cardano | ||
60 |
NP PF PP |
−794 0.95 56.25 |
40 |
NP PF PP |
−1, 246 0.90 54.5 |
61 |
NP PF PP |
684 1.05 58.82 |
45 |
NP PF PP |
1, 406 1.12 62.2 |
62 |
NP PF PP |
9, 330** 1.75** 67.6** |
46 |
NP PF PP |
1, 211 1.10 62.8 |
63 |
NP PF PP |
9, 272 1.73 65.6 |
47 |
NP PF PP |
4, 259** 1.38 66.7** |
64 |
NP PF PP |
6, 906 1.54 60 |
48 |
NP PF PP |
3, 406 1.29 65.12 |
65 |
NP PF PP |
6, 906 1.54 60 |
65 |
NP PF PP |
2, 946 1.30 63.3 |
70 |
NP PF PP |
2, 717 1.19 61.3 |
70 |
NP PF PP |
3, 010 1.37 58.3 |
75 |
NP PF PP |
8, 300 1.65 65.5 |
75 |
NP PF PP |
3, 676 1.47** 57.1 |
80 |
NP PF PP |
2, 047 1.56 52 |
80 |
NP PF PP |
2, 335 1.26 66.3 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. Minutes = the number of minutes trading bars used to form the prediction model. **= The highest score for each cryptocurrency. The results presented in the Table contain all trades including long and short trades. |
Position | BNB | Cardano | |
Long |
NP PF PP |
1, 386 1.16 58.8 |
2, 326 1.39 73.9 |
Short |
NP PF PP |
7, 944 3.05 76.5 |
1, 933 1.35 59 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. For BNB trading, 62 minutes of setup was used, and for Cardano, 47 minutes of setup was used. Long = an uptrend buy position. Short = a downtrend sell position. |
Minutes | Bitcoin | Minutes | Ethereum | ||
45 |
NP PF PP |
876.8 1.05 55.42 |
45 |
NP PF PP |
7, 019 1.30 56.63 |
50 |
NP PF PP |
4, 991 1.35 54.67 |
50 |
NP PF PP |
9, 812 1.45 56.16 |
55 |
NP PF PP |
5, 792 1.43 61.04 |
55 |
NP PF PP |
16, 476 1.84 60.56 |
60 |
NP PF PP |
8, 549 1.67 63.38 |
58 |
NP PF PP |
15, 802 1.81 61.19 |
65 |
NP PF PP |
12, 355 2.04 62.69 |
59 |
NP PF PP |
14, 640 1.86 61.54 |
66 |
NP PF PP |
14, 940 2.09 64.2 |
60 |
NP PF PP |
14, 278 1.84 61.9 |
67 |
NP PF PP |
15, 580** 2.30** 71.67** |
61 |
NP PF PP |
16, 980** 2.04** 66.67** |
68 |
NP PF PP |
15, 003 2.11 69.73 |
62 |
NP PF PP |
14, 133 1.83 66.62 |
69 | NP PF PP |
7, 041 1.53 64.4 |
65 |
NP PF PP |
9, 532 1.47 56.63 |
70 |
NP PF PP |
8, 288 1.72 62.71 |
70 |
NP PF PP |
12, 505 1.73 60.38 |
75 |
NP PF PP |
6, 526 1.56 60.57 |
75 |
NP PF PP |
10, 706 1.65 58.9 |
80 |
NP PF PP |
2, 564 1.23 56.4 |
80 |
NP PF PP |
8, 408 1.52 56.7 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. Minutes = the number of minutes trading bars used to form the prediction model. ** = The highest score for each cryptocurrency. The results presented in the Table contain all trades including long and short trades. |
Position | Bitcoin | Ethereum | |
Long |
NP PF PP |
7, 723 2.73 70 |
10, 478 2.56 67.74 |
Short |
NP PF PP |
7, 857 3.44 73.33 |
6, 502 1.67 65.63 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. For Bitcoin trading, 67 minutes setup was used, and for Ethereum, 61 minutes setup was used. Long = an uptrend buy position. Short = a downtrend sell position. |
Minutes | BNB | Minutes | Cardano | ||
60 |
NP PF PP |
−794 0.95 56.25 |
40 |
NP PF PP |
−1, 246 0.90 54.5 |
61 |
NP PF PP |
684 1.05 58.82 |
45 |
NP PF PP |
1, 406 1.12 62.2 |
62 |
NP PF PP |
9, 330** 1.75** 67.6** |
46 |
NP PF PP |
1, 211 1.10 62.8 |
63 |
NP PF PP |
9, 272 1.73 65.6 |
47 |
NP PF PP |
4, 259** 1.38 66.7** |
64 |
NP PF PP |
6, 906 1.54 60 |
48 |
NP PF PP |
3, 406 1.29 65.12 |
65 |
NP PF PP |
6, 906 1.54 60 |
65 |
NP PF PP |
2, 946 1.30 63.3 |
70 |
NP PF PP |
2, 717 1.19 61.3 |
70 |
NP PF PP |
3, 010 1.37 58.3 |
75 |
NP PF PP |
8, 300 1.65 65.5 |
75 |
NP PF PP |
3, 676 1.47** 57.1 |
80 |
NP PF PP |
2, 047 1.56 52 |
80 |
NP PF PP |
2, 335 1.26 66.3 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. Minutes = the number of minutes trading bars used to form the prediction model. **= The highest score for each cryptocurrency. The results presented in the Table contain all trades including long and short trades. |
Position | BNB | Cardano | |
Long |
NP PF PP |
1, 386 1.16 58.8 |
2, 326 1.39 73.9 |
Short |
NP PF PP |
7, 944 3.05 76.5 |
1, 933 1.35 59 |
Notes: NP = Net Profit, PF = Profit Factor, PP = Percent of Profitable trade of all trades. For BNB trading, 62 minutes of setup was used, and for Cardano, 47 minutes of setup was used. Long = an uptrend buy position. Short = a downtrend sell position. |