Next Article in Journal
Enhancing Portfolio Decarbonization Through SensitivityVaR and Distorted Stochastic Dominance
Previous Article in Journal
The Role of Entrepreneur’s Face Disclosure on Crowdfunding Success
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Polynomial Moving Regression Band Stocks Trading System

by
Gil Cohen
The Management Department, Western Galilee College, Acre 2412101, Israel
Risks 2024, 12(10), 166; https://doi.org/10.3390/risks12100166
Submission received: 29 September 2024 / Revised: 11 October 2024 / Accepted: 17 October 2024 / Published: 18 October 2024

Abstract

:
In this research, we attempted to fit a trading system based on polynomial moving regression bands (MRB) to Nasdaq100 stocks from 2017 till the end of March 2024. Since stocks movement does not follow a linear behavior, we used multiple degree polynomial regression models to identify the stocks’ trends and two standard deviations from the regression model to generate the trading signals. This way, the MRB was transformed into a momentum indicator designed to identify strong uptrends that can be used by a fully automated trading system. Our results indicate that the behavior of Nasdaq100 stocks can be tracked using all three examined polynomial models and can be traded profitably using fully automated systems based on those models. The best performing model was the model that used a four-degree polynomial MRB achieving the highest average net profit (USD 162.73). Regarding the risks involved, the third model has the lowest loss in dollar value (USD −95.52), and the highest minimum percent of profitable trades (41.51%) and profit factor (0.55) that indicates that this strategy is relatively less risky than the other two strategies.

1. Introduction

Predicting stock movements is a crucial area of research in finance and investment. Various studies have explored the use of regression models in forecasting stock prices. Regression models are employed to predict stock price movements, such as the closing price of a stock, based on historical data and other relevant variables. These models can assist investors in decision-making processes like buying, selling, or holding stocks. Different regression techniques have been utilized in stock price prediction. For instance, logistic regression has been used to establish the relationship between daily stock movement and trading volumes over a specific period (Kambeu 2019). Additionally, support vector regression (SVR) and K-nearest neighbor (KNN) regression are popular machine learning techniques applied in stock price prediction (Islam et al. 2021). Moreover, studies have compared the performance of classification models and level estimation models in predicting stock market movements. Classification models like discriminant analysis and neural networks have shown better results in predicting the direction of stock market movements compared to level estimation models like exponential smoothing and multivariate transfer functions (Kara et al. 2011). In the context of stock market prediction, regression models are often combined with other techniques such as deep learning, natural language processing, and ensemble learning to enhance predictive accuracy (Sen and Mehtab 2021). These combinations allow for a more comprehensive analysis of stock price movements and trends.
The moving regression band (MRB) trading system is a technical analysis tool that combines linear regression and moving averages to identify market trends and potential reversal points. It consists of a linear regression line, which represents the direction of the trend, and upper and lower bands plotted at a specified number of standard deviations from the regression line, serving as dynamic support and resistance levels. The system generates trading signals based on the price’s position relative to these bands, with a buy signal triggered when the price touches or crosses the lower band in an uptrend. While effective in trend-following and providing clear signals, the system is a lagging indicator and may produce false signals in choppy markets. It is often used in conjunction with other technical analysis tools to enhance its reliability and can be applied to various financial instruments, including stocks, forex, and commodities. The width of the bands also provides information about market volatility, with wider bands indicating higher volatility and narrower bands suggesting lower volatility. Most former research has utilized linear regressions to predict the behavior of financial assets (McMillan 2019; Maroto 2018). De Luna (1998) was one of the first to use polynomial regression to predict three-month U.S. Treasury bills yields. Following his pioneering research, we make the first attempt to construct polynomial MRB trading systems and tested their performances upon Nasdaq100 stocks. Two, three, and four degrees of polynomial MRB were used to identify the daily behavior of those stocks and to determine the goodness of fit of each model to real data. No past research has used this methodology, and such an attempt contributes to the understanding of technological stocks’ behavior.

2. Literature Review

Algorithmic trading systems have attracted significant attention in recent years, with a growing body of literature exploring various aspects of this field. Researchers have delved into the competitive advantage in algorithmic trading, emphasizing the behavioral innovation economics approach and providing insights into the motivations driving these market actors. Research has shown that algorithmic trading can indeed enhance liquidity in markets (Hendershott and Riordan 2011; Frino et al. 2021). Moreover, algorithmic trading has been found to contribute more to price discovery than human trades in specific markets (Benos and Sagade 2016). The integration of machine learning and artificial intelligence into algorithmic trading strategies has been increasing, providing opportunities for superior growth and competitive advantage (Burgess 2022). These technologies facilitate the development of dynamic trading strategies that can adjust to changing market conditions (Aloud and Alkhamees 2021). Additionally, the utilization of sophisticated algorithms in trading systems can automate various aspects of the trade cycle, thereby enhancing efficiency and potentially improving trading performance (Treleaven et al. 2013).
Cooper et al. (2022) provide insights into the competitive advantage in algorithmic trading, emphasizing the behavioral innovation economics approach. They highlight the strategic behavior of algorithmic trading firms, shedding light on the motivations driving these market actors. Furthermore, Currie and Seddon (2017) delve into the regulatory, technological, and market aspects of high-frequency trading, outlining a research agenda to address the challenges in this domain. Huang et al. (2019) reviewed automated trading systems, focusing on statistical and machine learning methods and hardware implementations. They categorize trading systems based on technical and textual analyses, as well as high-frequency trading methods. The development of algorithmic trading strategies is explored by Cliff (2018), who discusses benchmark algorithms commonly used in evaluating new trading strategies. Zhu (2022) surveys recent advances in financial trading systems based on reinforcement learning, emphasizing design strategies such as Q-learning and actor–critic algorithms. Ozturk et al. (2016) present a heuristic-based trading system for Forex data, incorporating technical indicator rules and machine learning methods like genetic algorithms. Zhang and Khushi (2020) introduce a genetic algorithm maximizing the Sharpe and Sterling ratio method for Robo Trading in the forex market, emphasizing the role of technical analysis in algorithmic trading strategies.
Past research has attempted to fit a non-linear model to stock movements. A polynomial regression offers a flexible approach to modeling non-linear relationships in stock price movements. By fitting a polynomial equation to historical stock data, analysts can capture intricate patterns that linear models may overlook. Researchers have integrated sentiment analysis into their polynomial regression models to enhance predictive power. Chavarnakul and Enke (2008) demonstrated the use of polynomial regression in modeling stock price movements, showing that it can capture the cyclical patterns often observed in financial markets. By fitting a polynomial curve to historical price data, analysts can identify underlying trends that are not apparent with linear models. However, a significant challenge with polynomial regression is the risk of overfitting, especially when using higher-degree polynomials. Overfitting occurs when a model is too closely tailored to the training data, which can reduce its predictive power on new data. Kim and Won (2018) proposed a hybrid model that combines linear regression with polynomial terms to forecast stock returns, effectively capturing both linear and non-linear patterns in the data. Despite the improved performance of hybrid models, challenges remain. Both polynomial and hybrid models are susceptible to overfitting, which can be mitigated through techniques such as cross-validation, regularization, and model pruning (Huang et al. 2005).
The literature also indicates that hybrid models can outperform traditional methods in terms of prediction accuracy. Ayyıldız (2023) highlighted that machine learning methods, including hybrid approaches, are more advantageous for predicting stock market index movements compared to conventional statistical methods. This sentiment is echoed by Rather (2014), who proposed a hybrid intelligent method that combines linear regression with recurrent neural networks, demonstrating reduced prediction errors through non-linear processing. Hybrid regression analysis combines traditional statistical methods with machine learning techniques to leverage the strengths of both paradigms. For instance, Zhao and Chen (2021) introduced a novel hybrid deep learning model that integrates the autoregressive integrated moving average (ARIMA) model with convolutional neural networks (CNNs) and sequence-to-sequence long short-term memory (LSTM) networks. This model effectively captures both linear and non-linear components of stock price movements, showcasing the efficacy of hybrid approaches in financial forecasting. Srijiranon et al. (2022) developed a hybrid model combining principal component analysis (PCA), empirical mode decomposition (EMD), and LSTM to predict stock prices, highlighting the versatility of hybrid frameworks in addressing the complexities of financial time series data.

3. Methodologies and Results

3.1. Data and Methodologies

In this research, we are exploring whether we can fit polynomial models to stock price data in a way that allows us to build a profitable trading system based on those models. Our goal is to determine if these mathematical models can accurately capture stock price movements to make successful trading decisions. By using polynomial models, particularly those of lower degrees to avoid overfitting, we aim to predict future price trends and develop strategies that lead to profitable trades in the stock market. Our data contains daily price information (open, close, highest, and lowest) of Nasdaq100 stocks from 2017 till the end of March 2024. Our sample period covers uptrends and downtrends in the stock market that enable our system to be tested under various economic conditions. We used two-, three-, and four-degree polynomial regression models to identify the stocks’ daily movement and two standard deviations from the regression model to generate the trading signals. We aimed to make our stock market predictions more reliable by preventing overfitting, which happens when a model learns the training data too well and performs poorly on new data. To achieve this, we used polynomial models with lower degrees because higher-degree polynomials can capture noise instead of the actual trend, leading to unnecessary complexity. During training, we implemented early stopping by monitoring the model’s performance on a separate validation dataset and halting the process if the performance started to decline, preventing the model from becoming too tailored to the training data. We conducted a random search to find the best balance between complexity and performance, testing polynomials of various degrees (like 5 and 6) and adjusting the number of standard deviations used to create trading bands. Before settling on the optimal setup, we applied various trading strategies to identify which one maximized profit. Additionally, we introduced trading bands by adding and subtracting two standard deviations from the fitting line, allowing the model to be more flexible and less strict in fitting the data exactly, which helps reduce overfitting. By using simpler models, stopping training at the right time, exploring different settings, and testing various strategies—we developed models that perform better on new, unseen data, making our stock market predictions more generalizable and reliable.
A buy signal is generated when the price crosses the upper band to the upside, and an exit trade signal is generated when prices cross the lower band to the downside. By amending the system this way, the MRB is transformed into a classic momentum indicator designed to identify strong uptrends. The models, including the upper and lower bands, are described in Models 1 to 3, and the fully designed system is illustrated in Figure 1.
Y = β 0 + β 1 X + β 2 X 2 ± 2 S
Y = β 0 + β 1 X + β 2 X 2 + β 3 X 3 ± 2 S
Y = β 0 + β 1 X + β 2 X 2 + β 3 X 3 + β 4 X 4 ± 2 S
As shown in Figure 1, our trading system operates based on the stock’s closing price in relation to predefined bands. When the stock’s closing price crosses above the upper band, the system purchases the stock at the opening price on the next trading day, initiating a long position (meaning we own the stock with the expectation that its price will rise). Conversely, when the closing price touches the lower band, the system sells the stock at the opening price on the following day, closing the long position. We account for a 0.3% commission fee on every buy or sell transaction, and all the reported results include these transaction costs. Our system is also designed to analyze the trading results using real-time data and includes the following items: net profit in dollars (NP), which is the total NP of all closed trades; percent of profitable trades (PP), which is the percent of the profitable trades out of the total amount of trades; profit factor (PF), which is the division of the gross profits by gross losses; total closed trades (TCTs), which is the total number of closed trades within the examined period; and average days in a single trade (ADT), which represents the average number of days in a single trade.

3.2. Results

Table 1 summarizes the trading results of our trading system based on a two-degree polynomial regression (MRB).
The trading results of our system based on a two-degree polynomial regression (MRB) show that the average net profit (NP) generated was USD 79.67, with a percent of profitable trades (PP) of 52.89% and a profit factor (PF) of 1.76. The average days in trade (ADT) was 31.59, and the total closed trades (TCTs) was 27.59. These results indicate that the trading system generated a profit on average while being in the market for 871.5 (31.59 × 27.59) days out of the total 1827 (47.7%) trading days from the beginning of 2017 to the end of March 2024. Out of the 100 stocks examined, 19 turned out to have a negative NP (19%). ORLY stocks achieved the highest NP of USD 553.29 with a PP of 55.56% and a PF of 3.13. The highest loss was generated when trading BIIB, with an NP of USD −269.62, a PP of 36.67%, and a PF of 0.46. The trading results of our trading system based on a three-degree polynomial regression (MRB) are summarized in Table 2.
Table 2 demonstrates that the average net profit (NP) achieved by our trading system based on a three-degree polynomial regression (MRB) is USD 110.33, with a percent of profitable trades (PP) of 55.85% and a profit factor (PF) of 1.67. These results are better than those achieved with the two-degree polynomial MRB in terms of NP and PP. The average number of days on the market is 872.4 (37.75 × 23.11) out of the 1827 (47.7%) total trading days in the sampled period. The highest NP was achieved by the system trading BKNG (USD 1501.25), and the lowest was with BIIB (−USD 218.23). These results indicate the superiority of the three-degree polynomial MRB system compared to the two-degree system. Table 3 summarizes the trading results of our trading system based on a four-degree polynomial regression (MRB).
Table 3 shows that the average net profit (NP) achieved by our trading system based on a four-degree polynomial regression (MRB) is USD 162.75, with a percent of profitable trades (PP) of 55.45% and a profit factor (PF) of 1.60. These results indicate that the four-degree polynomial system has achieved the highest average NP of the tested systems. The average days the stocks are in a trading position is 883.8 (49.71 × 17.78), which is 48.37% of the entire tested period. Again, BKNG (USD 2166.95) has turned out to be the most profitable stock, while PDD is the most losing trade (USD −95.52). These results point out that the four-degree polynomial MRB system is superior to the former two models in terms of risk and return. Table 4 summarizes our trading systems’ results.
From Table 4, we learn that the best trading system to trade Nasdaq100 stocks is Model 3, which makes use of a four-degree polynomial MRB. This model is superior to the other two in terms of net profit (NP). Regarding the risks involved, the third model has the lowest loss in dollar value (USD −95.52) and the highest minimum PP (41.51) and PF (0.55), which indicates that this strategy is relatively less risky than the other two strategies. The only downside of the third model is that it exposes investors to the market on average 11–12 days in total more than the other two models.

4. Summary and Conclusions

In this research, we explored whether a trading system based on polynomial moving regression bands (MRBs) could be effectively applied to Nasdaq100 stocks to trade profitably. We designed three fully automated trading systems using polynomial MRBs of degrees two to four and tested their performance on daily stock data from early 2017 to the end of March 2024. To limit the overfitting problem, we employed several strategies: we used lower-degree polynomials to avoid unnecessary complexity, implemented early stopping during model training to prevent the models from becoming too specialized to the training data, and conducted random searches to find the optimal balance between model complexity and performance. Our results indicated that all three models achieved, on average, a positive net profit (NP), with a percent of profitable trades (PP) exceeding 50% and a profit factor (PF) greater than 1, demonstrating that the behavior of Nasdaq100 stocks can be effectively modeled using polynomial regression without overfitting. Among the models, Model 3, which employed a fourth-degree polynomial MRB system, performed the best, achieving the highest average NP of USD 162.73 and exhibiting a superior risk profile with the lowest average loss (USD 95.52), highest minimum PP (41.51%), and highest minimum PF (0.55). These findings suggest that carefully designed polynomial MRB-based trading systems, which mitigate overfitting through model selection and validation techniques, can successfully capture stock price trends and be used to trade profitably in fully automated systems.

Funding

This research was funded by Western Galilee College.

Data Availability Statement

The Data for this research was derived from public domains.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Aloud, Monira Essa, and Nora Alkhamees. 2021. Intelligent Algorithmic Trading Strategy Using Reinforcement Learning and Directional Change. IEEE Access 9: 114659–71. [Google Scholar] [CrossRef]
  2. Ayyıldız, Nazif. 2023. Prediction of Stock Market Index Movements with Machine Learning. Gaziantep: Ozgur Press. [Google Scholar]
  3. Benos, Evangelos, and Satchit Sagade. 2016. Price discovery and the cross-section of high-frequency trading. Journal of Financial Markets 30: 54–77. [Google Scholar] [CrossRef]
  4. Burgess, Nicholas. 2022. Machine Learning Algorithmic Trading Strategies for Superior Growth, Outperformance and Competitive Advantage. International Journal of Artificial Intelligence and Machine Learning 2: 38–60. [Google Scholar] [CrossRef]
  5. Chavarnakul, Thira, and David Enke. 2008. Intelligent technical analysis based equivolume charting for stock trading using neural networks. Expert Systems with Applications 34: 1004–17. [Google Scholar] [CrossRef]
  6. Cliff, Dave. 2018. An Open-Source Limit-Order-Book Exchange for Teaching and Research. Paper presented at 2018 IEEE Symposium Series on Computational Intelligence (SSCI), Bangalore, India, November 18–21; pp. 1853–60. [Google Scholar]
  7. Cooper, Ricky, Wendy Currie, Jonathan Seddon, and Ben Van Vliet. 2022. Competitive advantage in algorithmic trading: A behavioral innovation economics approach. Review of Behavioral Finance 15: 371–95. [Google Scholar] [CrossRef]
  8. Currie, Wendy L., and Jonathan J. M. Seddon. 2017. The Regulatory, Technology and Market ‘Dark Arts Trilogy’ of High Frequency Trading: A Research Agenda. Journal of Information Technology 32: 111–26. [Google Scholar] [CrossRef]
  9. De Luna, Xavier. 1998. Projected polynomial autoregression for prediction of stationary time series. Journal of Applied Statistics 25: 763–75. [Google Scholar] [CrossRef]
  10. Frino, Alex, Dionigi Gerace, and Masud Behnia. 2021. The impact of algorithmic trading on liquidity in futures markets: New insights into the resiliency of spreads and depth. The Journal of Future Markets 41: 1301–14. [Google Scholar] [CrossRef]
  11. Hendershott, Terrence, and Ryan Riordan. 2011. Algorithmic Trading and the Market for Liquidity. Journal of Financial and Quantitative Analysis 48: 1001–24. [Google Scholar] [CrossRef]
  12. Huang, Boming, Yuziang Huan, and Li Da Xu. 2019. Automated Trading Systems Statistical and Machine Learning Methods and Hardware Implementation: A Survey. Enterprise Information Systems 13: 132–44. Available online: https://digitalcommons.odu.edu/cgi/viewcontent.cgi?article=1027&context=itds_facpubs (accessed on 28 September 2024). [CrossRef]
  13. Huang, Wei, Yoshiteru Nakamori, and Shou-Yang Wang. 2005. Forecasting stock market movement direction with support vector machine. Computers & Operations Research 32: 2513–22. [Google Scholar]
  14. Islam, Sharmin, Md. Shakil Sikder, Md. Farhad Hossain, and Partha Chakraborty. 2021. Predicting the daily closing price of selected shares on the Dhaka stock exchange using machine learning techniques. SN Business & Economics 1: 58. [Google Scholar]
  15. Kambeu, Edson. 2019. Trading Volume as a Predictor of Market Movement An Application of Logistic Regression in the R environment. International Journal of Finance and Banking Studies 8: 57–69. [Google Scholar]
  16. Kara, Yakup, Melek Acar Boyacioglu, and Ömer Kaan Baykan. 2011. Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul stock exchange. Expert Systems with Applications 38: 5311–19. [Google Scholar] [CrossRef]
  17. Kim, Ha Young, and Chang Hyun Won. 2018. Forecasting the Volatility of Stock Price Index: A Hybrid Model Integrating LSTM with Multiple GARCH-Type Models. Expert Systems with Applications 103: 25–37. [Google Scholar] [CrossRef]
  18. Maroto, Michelle. 2018. Sharing or limiting the wealth? Coresidence, parental support, and wealth outcomes in Canada. Journal of Family and Economic Issues 40: 102–16. [Google Scholar] [CrossRef]
  19. McMillan, David G. 2019. Cross-asset relations, correlations and economic implications. Global Finance Journal 41: 60–78. [Google Scholar] [CrossRef]
  20. Ozturk, Murat, Ismail Hakki Toroslu, and Guven Fidan. 2016. Heuristic based trading system on Forex data using technical indicator rules. Applied Soft Computing 43: 170–86. [Google Scholar] [CrossRef]
  21. Rather, Akhter Mohiuddin. 2014. A hybrid intelligent method of predicting stock returns. Advances in Artificial Neural Systems 2014: 246487. [Google Scholar] [CrossRef]
  22. Sen, Jaydip, and Sidra Mehtab. 2021. A robust predictive model for stock price prediction using deep learning and natural language processing. TechRxiv. [Google Scholar] [CrossRef]
  23. Srijiranon, Krittakom, Yoskorn Lertratanakham, and Tanatorn Tanantong. 2022. A hybrid framework using pca, emd and lstm methods for stock market price prediction with sentiment analysis. Applied Sciences 12: 10823. [Google Scholar] [CrossRef]
  24. Treleaven, Philip, Michal Galas, and Vidhi Lalchand. 2013. Algorithmic Trading Review. Communication of the ACM 56: 76–85. [Google Scholar] [CrossRef]
  25. Zhang, Zezheng, and Matloob Khushi. 2020. GA-MSSR: Genetic Algorithm Maximizing Sharpe and Sterling Ratio Method for Robo Trading. Ithaca: Cornell University. [Google Scholar]
  26. Zhao, Yang, and Zhonglu Chen. 2021. Forecasting stock price movement: New evidence from a novel hybrid deep learning model. Journal of Asian Business and Economic Studies 29: 91–104. [Google Scholar] [CrossRef]
  27. Zhu, Hengyue. 2022. Research advanced in financial trading systems based on reinforcement learning. Paper presented at 2nd International Conference on Artificial Intelligence Automation and High Performance (AIAHPC), Zhuhai, China, February 25–27. [Google Scholar]
Figure 1. The trading system design. Note: The green and red bars represent daily bars that symbolize the daily upper and lower price, respectively.
Figure 1. The trading system design. Note: The green and red bars represent daily bars that symbolize the daily upper and lower price, respectively.
Risks 12 00166 g001
Table 1. Results of the trading system based on two degrees. Polynomial moving regression band.
Table 1. Results of the trading system based on two degrees. Polynomial moving regression band.
TickerNP PP (%)PFTCTADT
1AAPL110.164.293.482831
2ABNB−59.2842.860.561427
3ADBE−15.4143.330.963026
4ADI39.8163.331.393031
5ADP173.5855.172.532934
6ADSK178.1050.002.112631
7AEP69.2973.083.532635
8AMAT2.1840.631.023229
9AMD64.2353.331.593031
10AMGN86.3955.171.482929
11AMZN67.7055.561.902740
12ANSS69.8858.621.292931
13ASML183.0557.141.332831
14AVGO139.0356.671.283029
15AZN39.0659.262.362736
16BIIB−269.6236.670.463030
17BKNG−45.2038.890.983626
18BKR16.5557.691.532635
19CCEP24.1851.721.782934
20CDNS75.9159.382.143228
21CDW91.2561.291.843128
22CEG70.3762.504.421536
23CHTR−4.4342.860.992931
24CMCSA−7.6237.040.782729
25COST323.6760.002.702541
26CPRT19.5262.51.793230
27CRWD130.4850.001.921832
28CSCO19.4270.371.602735
29CSGP−0.8651.850.982729
30CSX27.5867.862.902831
31CTAS252.5659.292.882732
32CTSH46.3965.382.322639
33DASH−80.7241.670.441229
34DDOG26.9542.8611.311431
35DLTR99.2055.562.252735
36DXCM63.2351.851.822731
37EA5.4651.721.052927
38EXC7.4453.331.343031
39FANG−75.7937.500.643225
40FAST47.0068.973.542931
41FTNT6.1950.001.132829
42GEHC−8.8320.000.41525
43GILD−17.6234.480.762927
44GOOG40.5255.561.952723
45GOOGL48.7764.002.172536
46HON65.6145.161.513129
47IDXX279.4850.001.783029
48ILMN38.3748.151.092735
49INTC−13.4838.710.803130
50INTU324.9053.332.313034
51ISRG182.6466.671.952733
52KDP15.5745.832.412441
53KHC−22.7541.940.623131
54KLAC191.6342.421.573328
55LIN235.4262.073.112929
56LRCX184.4444.831.322930
57LULU307.5760.712.552835
58MAR124.1660.002.603032
59MCHP19.8655.171.332931
60MDB75.8558.331.182434
61MDLZ15.3848.391.453130
62MELI258.8450.001.163226
63META228.3048.281.932932
64MNST32.2561.542.782633
65MRNA72.2038.891.221841
66MRVL−27.5136.360.683327
67MSFT86.6447.061.553431
68MU−10.7751.720.882929
69NFLX224.4958.621.572931
70NVDA390.6564.003.132538
71NXPI−6.2948.570.963527
72ODFL150.4370.374.802735
73ON26.6251.851.622731
74ORLY553.2955.563.132738
75PANW178.3462.072.862933
76PAYX33.4158.061.503128
77PCAR65.9053.332.773035
78PDD−21.2852.380.852133
79PEP86.7759.262.582733
80PYPL5.6446.151.042639
81QCOM12.6150.001.102831
82REGN273.0050.001.692833
83ROP281.2165.382.312633
84ROST112.7458.624.132933
85SBUX44.8364.291.742832
86SIRI4.0353.851.962633
87SNPS181.3861.292.443131
88TEAM−77.6362.070.792932
89TMUS12.5338.711.153129
90TSLA321.3857.692.282636
91TTD1.6051.721.022929
92TTWO16.5546.671.093031
93TXN−13.3048.390.903130
94VRSK113.4750.002.382828
95VRTX32.3051.521.133327
96WBA−53.2233.330.373031
97WBD19.4041.381.542927
98WDAY100.5051.851.682732
99XEL42.8673.082.552638
100ZS108.8652.381.692135
AV 79.6752.891.7627.5931.59
ST.D 117.739.750.894.703.72
Max 553.2973.084.803641
Min −269.6220.000.37523
Notes: AV = average, ST.D = standard deviation, NP = net profit, PP = percent of profitable trades, PF = profit factor, TCT = total closed trades, ADT = average days of trade. The results include 0.3% transaction costs for every trade.
Table 2. Results of the trading system based on three degrees. Polynomial moving regression band.
Table 2. Results of the trading system based on three degrees. Polynomial moving regression band.
TickerNP PP (%)PFTCTADT
1AAPL83.7458.971.864023
2ABNB3.1164.291.031425
3ADBE394.3260.981.963822
4ADI40.0758.541.314224
5ADP42.3357.141.283822
6ADSK42.3357.141.284022
7AEP−20.1246.670.804519
8AMAT72.7959.531.604121
9AMD77.9562.501.593725
10AMGN172.4850.802.143923
11AMZN98.2052.381.874221
12ANSS186.4762.161.883722
13ASML456.6366.671.774221
14AVGO396.2160.982.164124
15AZN13.4544.451.263625
16BIIB−218.2339.470.573819
17BKNG1501.2568.421.623824
18BKR11.9446.151.273922
19CCEP25.9864.861.743724
20CDNS141.4962.52.174022
21CDW114.4769.441.973627
22CEG57.6060.007.452526
23CHTR85.4253.661.174121
24CMCSA−2.8055.000.944021
25COST381.0964.862.473723
26CPRT30.1466.672.373923
27CRWD4.4545.831.023721
28CSCO17.1956.411.473924
29CSGP5.1255.001.084023
30CSX25.7254.052.363723
31CTAS209.0465.121.924321
32CTSH52.2857.51.884024
33DASH12.0260.001.171524
34DDOG75.8263.641.822221
35DLTR28.9855.261.243823
36DXCM88.5160.001.684024
37EA13.1150.001.084222
38EXC11.3155.261.483823
39FANG114.9456.411.763925
40FAST19.6857.141.414221
41FTNT10.9050.001.244222
42GEHC11.3360.005.00530
43GILD−35.5943.180.624422
44GOOG61.3854.051.853722
45GOOGL37.9155.261.493822
46HON95.7160.001.674022
47IDXX362.3052.381.974220
48ILMN72.7662.161.183724
49INTC−3.2446.150.953925
50INTU119.0658.541.384123
51ISRG208.7368.572.073530
52KDP6.5947.221.303623
53KHC−13.0650.000.753427
54KLAC403.9560.002.704023
55LIN153.8352.501.994024
56LRCX356.2264.861.703722
57LULU211.3661.541.723922
58MAR60.5551.161.384322
59MCHP81.1763.892.643626
60MDB−11.0157.580.983324
61MDLZ15.2551.281.383922
62MELI506.9559.521.384221
63META13.1747.621.034222
64MNST37.1256.412.483924
65MRNA33.1444.441.082723
66MRVL3.9548.651.063723
67MSFT123.6855.001.724024
68MU24.0947.501.264024
69NFLX156.0954.291.283526
70NVDA261.2851.161.774321
71NXPI153.0260.002.024022
72ODFL44.3163.891.433622
73ON71.6762.162.523726
74ORLY605.6857.502.804023
75PANW105.6352.631.673822
76PAYX50.6958.332.163625
77PCAR72.9970.273.463727
78PDD−22.3743.750.893221
79PEP51.9958.541.524122
80PYPL49.4752.381.384222
81QCOM75.4359.521.504222
82REGN136.4548.651.253723
83ROP217.6458.971.833924
84ROST60.7748.651.733724
85SBUX−45.1337.780.644521
86SIRI0.1238.461.023925
87SNPS318.5665.852.384121
88TEAM−58.2152.500.854024
89TMUS65.6365.791.933824
90TSLA263.0561.112.173623
91TTD32.1655.001.314023
92TTWO−63.9346.670.754521
93TXN108.5363.162.103827
94VRSK70.2658.971.593924
95VRTX302.2560.533.033825
96WBA−47.1237.500.484021
97WBD10.3043.901.174124
98WDAY58.0962.861.253524
99XEL14.3743.591.253921
100ZS99.0954.841.353123
AV 110.3355.851.6737.7523.11
ST.D 193.957.530.855.951.96
Max 1501.2570.277.454530
Min −218.2337.500.48519
Notes: AV = average, ST.D = standard deviation, NP = net profit, PP = percent of profitable trades, PF = profit factor, TCT = total closed trades, ADT = average days of trade. The results include 0.3% transaction costs for every trade.
Table 3. Results of the trading system based on four degrees. Polynomial moving regression band.
Table 3. Results of the trading system based on four degrees. Polynomial moving regression band.
TickerNPPP (%)PFTCTADT
1AAPL72.3559.511.704917
2ABNB25.0862.501.261621
3ADBE364.7161.541.715219
4ADI34.8254.551.205515
5ADP43.8352.831.235316
6ADSK144.4058.331.544820
7AEP−31.2047.370.715716
8AMAT103.2360.782.005118
9AMD120.3958.001.965019
10AMGN98.6851.021.444919
11AMZN148.3759.622.305218
12ANSS243.0767.311.875218
13ASML681.7364.812.255417
14AVGO354.6451.721.575817
15AZN3.7753.061.084918
16BIIB4.5446.671.014518
17BKNG2166.9562.002.365019
18BKR2166.9562.002.365019
19CCEP9.9146.31.175419
20CDNS208.6963.273.454918
21CDW93.3853.851.705218
22CEG47.4358.333.191219
23CHTR357.2257.141.634919
24CMCSA9.1957.691.225218
25COST111.5652.831.325318
26CPRT32.2363.272.874919
27CRWD136.5652.941.593416
28CSCO20.8461.221.384919
29CSGP54.0956.601.725319
30CSX7.1252.001.245017
31CTAS196.9457.701.695218
32CTSH10.6756.251.154820
33DASH−52.3842.860.552119
34DDOG88.9058.621.832917
35DLTR−30.2653.190.864719
36DXCM48.9553.701.345416
37EA−3.0447.060.985117
38EXC0.1348.081.005217
39FANG146.9965.312.014920
40FAST14.4549.061.275317
41FTNT36.0860.001.645519
42GEHC10.8180.003.82519
43GILD−5.3743.640.945517
44GOOG76.2560.001.985518
45GOOGL61.9656.141.725717
46HON−37.9649.060.845317
47IDXX255.3959.621.595218
48ILMN−27.6447.270.965516
49INTC−3.5446.150.955216
50INTU219.3263.161.465717
51ISRG322.0963.462.195220
52KDP21.8760.001.985019
53KHC19.0854.551.564419
54KLAC357.1057.892.125716
55LIN81.0256.141.305718
56LRCX457.3255.361.725616
57LULU247.8952.941.715118
58MAR7.6448.151.055417
59MCHP59.8161.221.974918
60MDB448.0157.142.224218
61MDLZ16.7454.001.335017
62MELI1393.0960.341.865818
63META−66.3345.10.835117
64MNST9.2454.241.175917
65MRNA−52.5351.350.873717
66MRVL34.0761.821.545517
67MSFT269.1567.312.935219
68MU55.8663.831.564719
69NFLX531.2966.672.204520
70NVDA457.8656.362.605517
71NXPI65.8862.001.355017
72ODFL14.8446.431.135616
73ON77.4164.002.865018
74ORLY441.7856.362.285516
75PANW99.6451.921.515218
76PAYX14.6345.451.125516
77PCAR11.1346.311.155417
78PDD−95.5251.280.593916
79PEP4.5051.721.035816
80PYPL90.8658.491.455318
81QCOM32.4645.611.165715
82REGN286.8253.191.444719
83ROP37.0155.361.085618
84ROST13.2955.321.114720
85SBUX−6.4546.030.945417
86SIRI2.3853.061.494919
87SNPS460.6864.913.805715
88TEAM208.4956.601.645318
89TMUS59.1256.361.605517
90TSLA235.7859.571.664718
91TTD92.2053.061.994919
92TTWO54.9453.701.345419
93TXN35.6448.081.265217
94VRSK64.9552.941.395118
95VRTX126.8655.771.455218
96WBA−20.0741.510.775317
97WBD3.4844.441.065417
98WDAY199.8961.221.7644919
99XEL4.0441.821.065518
100ZS147.0658.971.793918
AV 162.7555.451.6049.7117.78
ST.D 34854.400.649.011.12
Max 2166.9580.003.825921
Min −95.5241.510.55515
Notes: AV = average, ST.D = standard deviation, NP = net profit, PP = percent of profitable trades, PF = profit factor, TCT = total closed trades, ADT = average days of trade. The results include 0.3% transaction costs for every trade.
Table 4. Summary results of the three trading models.
Table 4. Summary results of the three trading models.
NP PP (%)PFDays
Model 1AV79.6752.891.76871.56
Min−269.6220.000.37115
Model 2AV110.3355.851.67872.4
Min−218.2337.500.4895
Model 3AV162.7355.451.60883.8
Min−95.5241.510.5575
Notes: AV = average, NP = net profit, PP = percent of profitable trades, PF = profit factor, Days = the total trading days. The results include 0.3% transaction costs for every trade.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cohen, G. Polynomial Moving Regression Band Stocks Trading System. Risks 2024, 12, 166. https://doi.org/10.3390/risks12100166

AMA Style

Cohen G. Polynomial Moving Regression Band Stocks Trading System. Risks. 2024; 12(10):166. https://doi.org/10.3390/risks12100166

Chicago/Turabian Style

Cohen, Gil. 2024. "Polynomial Moving Regression Band Stocks Trading System" Risks 12, no. 10: 166. https://doi.org/10.3390/risks12100166

APA Style

Cohen, G. (2024). Polynomial Moving Regression Band Stocks Trading System. Risks, 12(10), 166. https://doi.org/10.3390/risks12100166

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