Professional Documents
Culture Documents
275-282
DOI: 10.2478/v10248-012-0056-5
275
Rules of
meet this goal. From all of them, the most popular are fi-
1,31%.
The
like for e.g. State Space Wavelet Network (SSWN) [2] are
Introduction
tion Technology) the modern trading systems can meet from literature [3, 4], it was found that it is risky to make
the most demanding customer needs. With the increase investment decisions based solely on ANN prediction and
Unauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
276
M. Paluch, L. Jackowska-Strumio
Fig. 1: Relation between profit and risk in the most popular financial instruments [14]
or sometimes even years,
long-term investors, who, on the basis of a detailed fundamental analysis of companies, buy a Closing price of the asset for the next day is the most imlarge amount of shares and sell after a few months portant parameter for investors, who plan to make transUnauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
277
actions at the Stock Exchange. In this work a hybrid a. Arithmetical (5-, 10-, 20-days) - SMA (Simple Movapproach combining technical analysis and ANN is pro-
ing Average)
posed, which can support them in making correct decisions. The main idea of the proposed method is shown
in Fig. 2. Technical analysis methods are used to calcu-
SM AN (k)
1
[C(k) + C(k 1) + . . .
N
+C(k N + 1)]
(1)
predicts the CLOSE value for the next day. The aim of where: N - number of days, N = 5, 10, 20 C(k) - closing
this work was to investigate, if the proposed data prepro- price in the k-th day
cessing and market indicators calculation would improve
the ANN effectiveness in the CLOSE value prediction.
Feedforward networks of Multi-Layer Perceptron
(MLP) type trained with the backpropagation algo-
rithm [8] were used for the CLOSE value prediction. For
the comparison purposes the CLOSE value signal was LW M AN,C (k)
N C(k) + (N 1)C(k 1) + . . .
N + (N 1) + . . . + 1
C(k N + 1)
N + (N 1) + . . . + 1
predicted by the use of MLP and so called moving window method [6], in which the network is exposed to cur-
(2)
aN 1 C(k N + 1)
1 + a + a2 + ... + aN 1
where: a - coefficient,
ing:
primarily to mitigate deviations of prices. Additionally, the Bollinger band and envelopes are used to
Moving averages:
Unauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
(3)
278
M. Paluch, L. Jackowska-Strumio
Fig. 2: Processing scheme for predicting course of a CLOSE value for the next day
Oscillators
(6)
10 days)
where: L(14) - the lowest price from last fourteen days,
ROCN (k) = C(k)/C(k N )
(4)
b. RSI - Relative Strength Index - i.e. the measure of d. Moving Average Convergence/Divergence (M ACD)
overbought / oversold market. It assumes values in
the time of a bull market) and sold out for RSI < 20
(during a bear market).
(7)
(8)
For:
C(k) >
100
Research was conducted for 80 companies appearing on
RSI(k) = 100
(5)
EM AN,U (k)
1 + EM AN,D (k)
the stock market in Warsaw since 3.01.2000 until now, seC(k) <
where U (k) - average increase in the k-th day, D(k) average decrease in the k-th day
for predicting the CLOSE value of the asset for the next
between the last closing price and the range of price day. The research was performed with the use of Java and
fluctuations in the given period. The result belongs Neuroph 2.6. library, creating ANN of Multi-Layer Perto the range of 0-100. K%D > 70 is interpreted ceptron (MLP) type. Each network consists of an input,
Unauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
279
formula:
(V alue/V aluemax) 0, 8 + 0, 1
(9)
with the smallest training and testing errors have been selected. The results for these ANN architectures obtained The presented studies on application of neural networks
for one exemplary company Asseco Poland SA are pre- for predicting the closing prices on the stock exchange
sented in Tab. 2. An example of MLP (5-9-1) structure, have shown that the relatively low rates of errors were
which is listed in position 1 is shown in Fig. 3.
Unauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
280
M. Paluch, L. Jackowska-Strumio
Tab. 2: Architectures of the selected networks, which achieved the best results
No.
Input
MLP
Transfer
Periods Training Testing
function
error
error
(MSE)
(MSE)
SMA10
SMA20
1.
Bollinger Band 5-9-1 sigmoidal
1000
0,026
0,0017
RSI
MACD
SMA10
2.
MACD
4-5-1 sigmoidal
4000
0,031
0,0024
Bollinger Band
RSI
LWMA5
3.
LWMA20
4-7-1 sigmoidal
1000
0,027
0,0021
Envelope
RSI
EMA5
EMA10
4.
Bollinger Band 6-9-1 sigmoidal
4000
0,034
0,0028
ROC
MACD
RSI
EMA5
EMA20
5.
Envelope
6-9-1 sigmoidal
700
0,032
0,0023
K%D
MACD
RSI
CLOSE values
6.
from last
5-6-1 sigmoidal
2500a
0,0018
0,0011a
five days
Unauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
281
Fig. 4: Short-term forecast of MLP (5-9-1) network, with real CLOSE value of Asseco Poland SA shares in August
2011
network based model can be used to make good investTab. 3: Comparison of real quotes and network forecast
for Asseco Poland SA
Data
CLOSE CLOSE
Relative
real
network
error in
quotes
forecast prediction
[PLN]
[PLN]
[%]
1-08-2011
47,67
47,21
0,97
2-08-2011
47,8
47,28
1,08
3-08-2011
46,9
46,45
0,97
4-08-2011
45,17
44,71
1,02
5-08-2011
43,85
43,46
0,88
8-08-2011
40,95
40,67
0,68
9-08-2011
39,81
39,73
0,19
10-08-2011
37,5
37,82
0,84
11-08-2011
37,15
37,51
0,98
12-08-2011
39,47
39,45
0,06
16-08-2011
39,88
39,78
0,26
17-08-2011
39,38
39,36
0,05
18-08-2011
36,99
37,37
1,04
19-08-2011
36,39
36,87
1,31
22-08-2011
37,25
37,6
0,93
23-08-2011
37,2
37,55
0,93
24-08-2011
36,9
37,29
1,06
25-08-2011
38,74
38,84
0,25
26-08-2011
38,21
38,28
0,19
29-08-2011
39,45
39,19
0,66
30-08-2011
39,8
39,45
0,87
31-08-2011
42,5
42,23
0,63
Unauthenticated | 85.86.26.162
Download Date | 3/17/14 3:52 PM
282
M. Paluch, L. Jackowska-Strumio
sell securities.
References
tistical methods, Selected financial issues, (in Polish), C. H. Beck, Warsaw 2002
[2] M.A. Brdys, A. Borowa, P. Idzkowiak, M.T. Brdys, [12] A. Zaremba, Stock Exachange, (in Polish), 2010
Adaptive Prediction of Stock Exchange Indices by [13] J. Zielinski, Intelligent management systems - theState Space Wavelet Networks, Int. J. Appl. Math.
ory and practice, (in Polish), Warsaw 2000
Comput. Sci., Vol. 19 , No. 2, pp. 337-348, 2009
[14] http://www.mbank.pl/inwestycje/centrum[3] W. Debski, Financial Market and it mechanisms,
inwestora/fundusze/narzedzia/ryzyko(in Polish), PWN, Warsaw 2010
inwestycyjne.html