| Literature DB >> 33286760 |
Oday A Hassen1, Saad M Darwish2, Nur A Abu3, Zaheera Z Abidin3.
Abstract
Forecasting stock prices plays an important role in setting a trading strategy or determining the appropriate timing for buying or selling a stock. The use of technical analysis for financial forecasting has been successfully employed by many researchers. The existing qualitative based methods developed based on fuzzy reasoning techniques cannot describe the data comprehensively, which has greatly limited the objectivity of fuzzy time series in uncertain data forecasting. Extended fuzzy sets (e.g., fuzzy probabilistic set) study the fuzziness of the membership grade to a concept. The cloud model, based on probability measure space, automatically produces random membership grades of a concept through a cloud generator. In this paper, a cloud model-based approach was proposed to confirm accurate stock based on Japanese candlestick. By incorporating probability statistics and fuzzy set theories, the cloud model can aid the required transformation between the qualitative concepts and quantitative data. The degree of certainty associated with candlestick patterns can be calculated through repeated assessments by employing the normal cloud model. The hybrid weighting method comprising the fuzzy time series, and Heikin-Ashi candlestick was employed for determining the weights of the indicators in the multi-criteria decision-making process. Fuzzy membership functions are constructed by the cloud model to deal effectively with uncertainty and vagueness of the stock historical data with the aim to predict the next open, high, low, and close prices for the stock. The experimental results prove the feasibility and high forecasting accuracy of the proposed model.Entities:
Keywords: Heikin–Ashi candlestick; cloud model; fuzzy time series; stock trend
Year: 2020 PMID: 33286760 PMCID: PMC7597316 DOI: 10.3390/e22090991
Source DB: PubMed Journal: Entropy (Basel) ISSN: 1099-4300 Impact factor: 2.524
Figure 1Cloud model.
Figure 2Two different types of cloud generators. (a) Forward cloud generator; (b) Backward cloud generator.
Figure 3Processes of fuzzy time series forecasting.
Figure 4The dark candle and white candle.
Figure 5The procedure of the proposed forecasting model.
Figure 6The membership function of the body and shadow length based on the cloud model.
Figure 7The membership function of the open and close styles based on the cloud model.
Figure 8The clouds of the linguistic terms.
The digital characteristics of cloud member function for each linguistic term.
| Price Variation | [−6, −4.5] | [−6, −3] | [−4.5, −1.5] | [−3, 0] | [−1.5, 1.5] | [0, 3] | [1.5, 4.5] | [3, 6] | [4.5, 6] | |
|---|---|---|---|---|---|---|---|---|---|---|
| Linguistic Terms | A1 Extreme Decrease | A2 Large Decrease | A3 Normal Decrease | A4 Small Decrease | A5 No Change | A6 Small Increase | A7 Normal Increase | A8 Large Increase | A9 Extreme Increase | |
| CG |
| −6 | −4.5 | −3 | −1.5 | 0 | 1.5 | 3 | 4.5 | 6 |
|
| 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | |
|
| 0.05 | 0.05 | 0.05 | 0.05 | 0.05 | 0.05 | 0.05 | 0.05 | 0.05 | |
Selected time series datasets.
| Company | Symbol | from | to |
|---|---|---|---|
| Boeing Company | BA | 02/01/1962 | 27/06/2018 |
| Bank of America | BAC | 03/01/2000 | 12/12/2014 |
| DuPont | DD | 03/01/2000 | 12/12/2014 |
| Ford Motor Co. | F | 03/01/2000 | 12/12/2014 |
| General Electric | GE | 03/01/2000 | 12/12/2014 |
| Hewlett–Packard | HPQ | 03/01/2000 | 12/12/2014 |
| Microsoft | MSFT | 03/01/2000 | 12/12/2014 |
| Monsanto | MON | 18/10/2000 | 12/12/2014 |
| Toyota Motor | TM | 03/01/2000 | 12/12/2014 |
| Wells Fargo | WFC | 01/06/1972 | 27/06/2018 |
| Yahoo | YHOO | 03/01/2005 | 12/12/2014 |
| Exxon Mobil | XOM | 02/01/1970 | 21/05/2018 |
| Walt Disney | DIS | 02/01/1962 | 27/06/2018 |
Heiken–Ashi candlestick patterns derived from Yahoo training data.
| Date | Open | High | Low | Close | HA Open | HA High | HA Low | HA Close | HA Body | HA Upper Shadow | HA Lower Shadow | HA Color | HA Open Style | HA Close Style |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 10/01/2005 | 36.00 | 36.76 | 35.51 | 36.32 | 36.16 | 36.76 | 35.51 | 36.15 | EQUAL | SHORT | SHORT | BLACK | HIGH | HIGH |
| 11/01/2005 | 36.31 | 36.58 | 35.39 | 35.66 | 36.15 | 36.58 | 35.39 | 35.99 | SHORT | SHORT | SHORT | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 12/01/2005 | 35.88 | 36.18 | 34.80 | 36.14 | 36.07 | 36.18 | 34.80 | 35.75 | SHORT | SHORT | MIDDLE | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 13/01/2005 | 36.12 | 36.32 | 35.26 | 35.33 | 35.91 | 36.32 | 35.26 | 35.76 | SHORT | SHORT | SHORT | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 14/01/2005 | 35.86 | 36.70 | 35.83 | 36.70 | 35.83 | 36.70 | 35.83 | 36.27 | SHORT | SHORT | EQUAL | WHITE | EQUAL_HIGH | HIGH |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| 28/11/2014 | 51.87 | 52.00 | 51.64 | 51.74 | 51.73 | 52.00 | 51.64 | 51.81 | EQUAL | SHORT | EQUAL | WHITE | EQUAL_HIGH | EQUAL_HIGH |
| 01/12/2014 | 51.43 | 51.43 | 49.66 | 50.10 | 51.77 | 51.77 | 49.66 | 50.66 | MIDDLE | EQUAL | SHORT | BLACK | EQUAL_HIGH | LOW |
| 02/12/2014 | 50.27 | 51.12 | 50.01 | 50.67 | 51.21 | 51.21 | 50.01 | 50.52 | SHORT | EQUAL | SHORT | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 03/12/2014 | 50.71 | 50.97 | 50.20 | 50.28 | 50.87 | 50.97 | 50.20 | 50.54 | SHORT | EQUAL | SHORT | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 04/12/2014 | 50.19 | 50.67 | 49.90 | 50.41 | 50.70 | 50.70 | 49.90 | 50.29 | SHORT | EQUAL | SHORT | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 05/12/2014 | 51.03 | 51.25 | 50.51 | 50.99 | 50.50 | 51.25 | 50.50 | 50.95 | SHORT | SHORT | EQUAL | WHITE | EQUAL_HIGH | HIGH |
| 08/12/2014 | 50.52 | 50.90 | 49.22 | 49.62 | 50.72 | 50.90 | 49.22 | 50.07 | SHORT | SHORT | SHORT | BLACK | LOW | LOW |
| 09/12/2014 | 48.75 | 50.53 | 48.29 | 50.51 | 50.39 | 50.53 | 48.29 | 49.52 | SHORT | SHORT | MIDDLE | BLACK | EQUAL_HIGH | EQUAL_HIGH |
| 10/12/2014 | 50.33 | 50.69 | 49.19 | 49.21 | 49.96 | 50.69 | 49.19 | 49.86 | EQUAL | SHORT | SHORT | BLACK | EQUAL_HIGH | EQUAL_HIGH |
Yahoo dataset, one day variations, and its cloud.
| Date | Open | High | Low | Close | One Day Variations | Cloud | One Day Variations | Cloud | One Day Variations | Cloud | One Day Variations | Cloud |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Open | High | Low | Close | |||||||||
| O | H | L | C | O | H | L | C | |||||
| 03/01/2005 | 38.36 | 38.9 | 37.65 | 38.18 | 0.00 | 0.00 | 0.00 | 0.00 | ||||
| 04/01/2005 | 38.45 | 38.54 | 36.46 | 36.58 | 0.23 | A5 | −0.93 | A4 | −3.16 | A3 | −4.19 | A2 |
| 05/01/2005 | 36.69 | 36.98 | 36.06 | 36.13 | −4.58 | A2 | −4.05 | A2 | −1.10 | A4 | −1.23 | A4 |
| 06/01/2005 | 36.32 | 36.5 | 35.21 | 35.43 | −1.01 | A4 | −1.30 | A4 | −2.36 | A4 | −1.94 | A4 |
| 07/01/2005 | 35.99 | 36.46 | 35.41 | 35.96 | −0.91 | A4 | −0.11 | A4 | 0.57 | A5 | 1.50 | A6 |
| 10/01/2005 | 36.00 | 36.76 | 35.51 | 36.32 | 0.03 | A4 | 0.82 | A6 | 0.28 | A5 | 1.00 | A6 |
| …. | … | … | ….. | … | ….. | …. | ….. | …. | ….. | …. | ….. | …. |
| …. | … | … | ….. | … | ….. | …. | ….. | …. | ….. | …. | ….. | …. |
| 10/12/2014 | 50.33 | 50.69 | 49.19 | 49.21 | 3.24 | A7 | 0.32 | A5 | 1.86 | A6 | −2.57 | A4 |
| 11/12/2014 | 49.54 | 50.58 | 49.43 | 49.94 | −1.57 | A4 | −0.22 | A4 | 0.49 | A5 | 1.48 | A6 |
The PLR results.
| Date | Open PLR | High PLR | Low PLR | Close PLR |
|---|---|---|---|---|
| 03/01/2005 | ||||
| 04/01/2005 | A5
| A4 | A3 | A2 |
| 05/01/2005 | A2 | A2 | A4 | A4 |
| 06/01/2005 | A4 | A4 | A4 | A4 |
| 07/01/2005 | A4 | A4 | A5 | A6 |
| …. | …. | …. | …. | …. |
| …. | …. | …. | …. | …. |
| 09/12/2014 | A2 | A4 | A4 | A6 |
| 10/12/2014 | A7 | A5 | A6 | A4 |
| 11/12/2014 | A4 | A4 | A5 | A6 |
PLRG for close PLR.
| Close | To | Total Count | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | |||
| From | A1 | 0 | 2 | 0 | 14 | 1 | 2 | 2 | 0 | 3 | 24 |
| A2 | 2 | 7 | 3 | 21 | 4 | 16 | 6 | 6 | 5 | 70 | |
| A3 | 0 | 1 | 1 | 15 | 3 | 7 | 2 | 2 | 1 | 32 | |
| A4 | 6 | 30 | 15 | 370 | 79 | 170 | 67 | 29 | 17 | 783 | |
| A5 | 4 | 3 | 3 | 100 | 22 | 28 | 11 | 7 | 1 | 179 | |
| A6 | 5 | 10 | 3 | 152 | 42 | 64 | 32 | 13 | 6 | 327 | |
| A7 | 3 | 9 | 3 | 68 | 19 | 21 | 4 | 6 | 3 | 136 | |
| A8 | 0 | 3 | 2 | 25 | 8 | 15 | 10 | 7 | 3 | 73 | |
| A9 | 4 | 5 | 2 | 18 | 1 | 4 | 2 | 3 | 5 | 44 | |
| 1668 | |||||||||||
Average MSE of the suggested model for all dataset.
| MSE | Open | High | Low | Close |
|---|---|---|---|---|
| Training Data | 0.09 | 0.19 | 0.16 | 0.20 |
| Testing Data | 0.03 | 0.07 | 0.07 | 0.07 |
MSE Comparison for CLOSE price prediction between HA Cloud FTS, Cloud FTS, Yu WFTS and Song.
| MSE | HA Cloud FTS | Cloud FTS | Yu WFTS [ | Song FTS [ | |||||
|---|---|---|---|---|---|---|---|---|---|
| Company | Train | Test | Train | Test | Train | Test | Train | Test | |
| Boeing Company | BA | 0.048 | 0.672 | 0.078 | 0.960 | 5.290 | 3.460 | 5.954 | 3.725 |
| Bank of America | BAC | 0.941 | 0.023 | 1.124 | 0.029 | 6.503 | 2.592 | 2.756 | 0.960 |
| DuPont | DD | 0.270 | 0.116 | 0.397 | 0.152 | 5.336 | 2.496 | 14.516 | 7.076 |
| Ford Motor Co. | F | 0.168 | 0.020 | 0.203 | 0.026 | 5.905 | 2.690 | 4.080 | 1.588 |
| General Electric | GE | 3.204 | 0.023 | 3.423 | 0.036 | 8.526 | 2.403 | 9.425 | 2.074 |
| Hewlett–Packard | HPQ | 1.392 | 0.096 | 1.769 | 0.130 | 7.182 | 2.756 | 6.605 | 2.372 |
| Microsoft | MSFT | 0.740 | 0.048 | 0.922 | 0.068 | 5.905 | 2.403 | 7.129 | 2.372 |
| Monsanto | MON | 1.904 | 0.314 | 2.528 | 0.476 | 8.009 | 3.028 | 6.052 | 1.588 |
| Toyota Motor | TM | 1.166 | 0.449 | 1.369 | 0.504 | 6.300 | 2.856 | 19.272 | 9.303 |
| Wells Fargo | WFC | 0.023 | 0.102 | 0.040 | 0.144 | 4.928 | 2.624 | 3.133 | 1.638 |
| Yahoo | YHOO | 0.203 | 0.073 | 0.250 | 0.090 | 5.664 | 2.624 | 6.052 | 2.496 |
| Exxon Mobil | XOM | 0.040 | 0.221 | 0.068 | 0.314 | 4.580 | 2.560 | 6.656 | 3.572 |
| Walt Disney | DIS | 0.023 | 0.130 | 0.036 | 0.194 | 5.198 | 2.723 | 4.580 | 2.250 |
| AVERAGE | 0.779 | 0.176 | 0.939 | 0.240 | 6.102 | 2.709 | 7.400 | 3.155 | |
Figure 9Comparison of the forecasting values of different methods.