SlideShare a Scribd company logo
1 of 8
Download to read offline
TELKOMNIKA, Vol.15, No.3, September 2017, pp. 1425~1432
ISSN: 1693-6930, accredited A by DIKTI, Decree No: 58/DIKTI/Kep/2013
DOI: 10.12928/TELKOMNIKA.v15i3.5410  1425
Received April 15, 2017; Revised June 20, 2017; Accepted July 7, 2017
Brown’s Weighted Exponential Moving Average
Implementation in Forex Forecasting
Seng Hansun*
1
, Subanar
2
1
Universitas Multimedia Nusantara, Program Studi Teknik Informatika, Fakultas Teknik dan Informatika, Jl.
Boulevard Gading Serpong, Scientia Garden, Tangerang, Indonesia
2
Universitas Gadjah Mada, Jurusan Matematika FMIPA UGM, Sekip Utara, Yogyakarta, Indonesia
*Corresponding author, e-mail: hansun@umn.ac.id
1
, subanar@yahoo.com
2
Abstract
In 2016, a time series forecasting technique which combined the weighting factor calculation
formula found in weighted moving average with Brown’s double exponential smoothing procedures had
been introduced. The technique is known as Brown’s weighted exponential moving average (B-WEMA), as
a new variant of double exponential smoothing method which does the exponential filter processes twice.
In this research, we will try to implement the new method to forecast some foreign exchange, or known as
forex data, including EUR/USD, AUD/USD, GBP/USD, USD/JPY, and EUR/JPY data. The time series data
forecasting results using B-WEMA then be compared with other conventional and hybrid moving average
methods, such as weighted moving average (WMA), exponential moving average (EMA), and Brown’s
double exponential smoothing (B-DES). The comparison results show that B-WEMA has a better accuracy
level than other forecasting methods used in this research.
Keywords: Brown’s double exponential smoothing, B-WEMA, exponential moving average, foreign
exchange, time series forecasting, weighted moving average
Copyright © 2017 Universitas Ahmad Dahlan. All rights reserved.
1. Introduction
Time series is a time-oriented or chronological sequence of observations on a variable
of interest [1]. There are two types of time series data, i.e. continuous time series where
observations recorded continuously over some time intervals, and discrete time series where
observations are made at fixed time intervals [2]. According to Dufour [2], the discrete time
series data is more commonly used than the continuous time series data, especially in
economic related field.
In order to understand the characteristics of time series data, there are so many time
series analysis methods that have been developed [3, 4]. One of their goal is to forecast or
predict the future values from a given time series data [5]. To achieve that goal, many
researchers had conducted and developed, not only conventional methods as we can find in the
works of Wang [6], Klinker [7], and Papailias and Thomakos [8], but also the soft computing
methods such as fuzzy, neural networks, or their hybrid methods [9-15].
In mid-2016, a new technique to forecast future data in time series analysis had been
introduced. The technique is called as Brown’s Weighted Exponential Moving Average (B-
WEMA) since it is a hybrid method which combined the weighting factor calculation formula
found in weighted moving average with Brown’s double exponential smoothing method. Based
on the research’s results as presented in [16], B-WEMA has a better accuracy value compare to
other conventional moving average methods.
In this study, we will try to implement B-WEMA in a real financial time series data, i.e.
the foreign exchange (forex/ FX). Forex is the exchange of one currency into another
currency [17] and the market is said to be the largest and most liquid market in the whole world
[18]. So the prediction of forex time series data by using its historical transaction is very
important, that the decision of selling or buying the forex can be taken more precisely.
This study is the extended version of the research that had been published in late
2016 [19]. If on that research, the author only used one forex time series data (i.e. the
EUR/USD closing data) and compared the B-WEMA forecasting results’ with weighted moving
average (WMA) and Brown’s double exponential smoothing (B-DES), in this research we will try
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432
1426
to implement B-WEMA in five major currency pairs in forex transactions (i.e. EUR/USD,
AUD/USD, GBP/USD, USD/JPY, and EUR/JPY closing data). Furthermore, exponential moving
average (EMA) will also be used as a comparison method in spite of WMA and B-DES methods.
To calculate the accuracy level of all forecasting methods, we will use mean square error (MSE)
and mean absolute percentage error (MAPE). The next section will describe in detail the three
moving average methods used in this research, i.e. WMA, EMA, and B-DES; and the hybrid
moving average method, i.e. B-WEMA. Furthermore, MSE and MAPE forecast error
measurements will be explained on the same section, while the forecasting results will be
graphed and explained on Section 3. Section 4 will conclude the research’s results and other
findings which can be used as future research’s topics.
2. Research Method
This chapter is begun with the discussion of weighted moving average, exponential
moving average, and Brown’s double exponential smoothing methods. The hybrid Brown’s
weighted exponential moving average method will be described later. The explanation of mean
square error and mean absolute percentage error as the forecast error measurements will end
this section.
2.1. Weighted Moving Average (WMA)
Weighted moving average is designed to put more weight on recent data and less
weight on past data [20]. Usually, the weighting factor is calculated from the sum of days used
in WMA calculation [21,22], with the formula can be described as follows [23]
( ) ( ) ( )
( )
(1)
where refers to the period or time interlude used in forecasting formula and refers to the
actual value of time series data at point .
2.2. Exponential Moving Average (EMA)
The development of weighted moving average leads to exponential moving average.
Just like WMA, exponential moving average also places more weight on recent data [24], but
unlike WMA, the weight for each older data decreases exponentially, so it’s never reaching zero
value [25]. EMA is also known as single exponential smoothing technique and can be used to
predict any time series data.
As described by NIST [26], EMA can be calculated recursively as:
, for ( ) , (2)
where is the actual value at time period , is the smoothed value of EMA at time period ,
and represents a constant smoothing factor between 0 and 1. As can be found in [24] and
[27], can be calculated using the formula
( )
(3)
where is the number of days used as time period in the forecasting formula.
2.3. Brown’s Double Exponential Smoothing (B-DES)
Brown’s double exponential smoothing is a type of double exponential smoothing
technique, which is an improvement of single exponential smoothing or exponential moving
average. It uses two different smoothed series, both of them are centered at different points on
time [28]. It is said that the double exponential smoothing techniques can predict future values
of time series data where a trend pattern spotted better than the single exponential smoothing
technique. Nau [28] explained the procedures of B-DES as follows.
First, we need to find the single-smoothed series, , by applying EMA to time series ,
as:
TELKOMNIKA ISSN: 1693-6930 
Brown’s Weighted Exponential Moving Average Implementation ... (Seng Hansun)
1427
( ) (4)
Then, by using the single-smoothed series, we could find the double-smoothed series,
denoted as , by applying EMA to ,
( ) (5)
Next, we could get the forecast value , for any , by
(6)
where refers to the predicted level at time , refers to the predicted trend at time , which
both of them can be found as follow:
(7)
( ) (8)
2.4. Brown’s Weighted Exponential Moving Average (B-WEMA)
Brown’s weighted exponential moving average was first introduced in 2016 [16]. It is an
improved version of weighted exponential moving average (WEMA) method which had been
introduced in 2013 [25]. Using the basic principle found in WEMA, B-WEMA combines the
weighting factor calculation formula found in weighted moving average with Brown’s double
exponential smoothing method. Same with other double exponential smoothing techniques, B-
WEMA could be used to predict future values of time series data with a trend pattern.
The procedures of B-WEMA method can be explained as three recursive steps [16]:
(1) Using equation (1) for a given time series data and periods, we calculate the base value, .
(2) Using the base value obtained, we calculate the prediction value by implementing equation
(4)-(8), but we start the model by letting
(9)
(3) Return to the first step until all data point in the time series data given have ended.
2.5. Mean Square Error (MSE)
The most popular technique to measure forecast error is mean square error. It is the
average of the square error sum between the real data and the forecasted data. We can use the
formula below to find MSE [29],
∑
(10)
where denotes the number of data point used in the forecasting and denotes the
forecasting error, which can be found from the differences of real data ( ) and forecasted data
(̂ ).
2.6. Mean Absolute Percentage Error (MAPE)
Mean absolute percentage error is another popular forecast error measurement
technique. It gives us an indication about how much the average of absolute error of the
forecasted data compare to the actual data. The formula can be expressed as [29],
∑ | |
(11)
where denotes the number of data point used in the forecasting and denotes the
forecasting error from the differences of real and forecasted data, ̂ .
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432
1428
3. Results and Discussion
On this study, implementation of Brown’s weighted exponential moving average on a
real case financial data, i.e. the foreign exchange (forex) was conducted. Therefore, five major
currency pairs in forex transactions, i.e. EUR/USD, AUD/USD, GBP/USD, USD/JPY, and
EUR/JPY closing data were recorded daily from November 16
th
, 2015 to November 15
th
, 2016
[30] and be used as the dataset. Then, B-WEMA together with WMA, EMA, and B-DES will be
implemented on the same dataset. We used MSE and MAPE criteria to calculate the accuracy
level of each method implemented on this study.
3.1. Forex Forecasting Implementation
Figure 1 shows us the graph of forecasting results on EUR/USD closing data using
WMA, EMA, B-DES, and B-WEMA methods. Moreover, Figure 2 shows the forecasting results
using the same methods for AUD/USD dataset, Figure 3 shows the forecasting results for
GBP/USD dataset, Figure 4 shows the forecasting results for USD/JPY dataset, and Figure 5
shows the forecasting results for EUR/JPY dataset. The real (actual) forex closing data are
indicated by the blue line on the graph, while the predicted data are indicated by the red line.
Figure 1. Forecasting results for EUR/USD
(a) WMA forecasting results (b) EMA forecasting results
(c) B-DES forecasting results (d) B-WEMA forecasting results
TELKOMNIKA ISSN: 1693-6930 
Brown’s Weighted Exponential Moving Average Implementation ... (Seng Hansun)
1429
Figure 2. Forecasting results for AUD/USD
Figure 3. Forecasting results for GBP/USD
(a) WMA forecasting results (b) EMA forecasting results
(c) B-DES forecasting results (d) B-WEMA forecasting results
(a) WMA forecasting results (b) EMA forecasting results
(c) B-DES forecasting results (d) B-WEMA forecasting results
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432
1430
Figure 4. Forecasting results for USD/JPY
Figure 5. Forecasting results for EUR/JPY
4.2. MSE and MAPE Comparison
The experiments then continued to calculate the accuracy of each moving average
method implemented on the system. Mean square error (MSE) and mean absolute percentage
error (MAPE) criteria were used as forecast error measurement tools. The results of MSE and
MAPE can be seen on Table 1.
(a) WMA forecasting results (b) EMA forecasting results
(c) B-DES forecasting results (d) B-WEMA forecasting results
(a) WMA forecasting results (b) EMA forecasting results
(c) B-DES forecasting results (d) B-WEMA forecasting results
TELKOMNIKA ISSN: 1693-6930 
Brown’s Weighted Exponential Moving Average Implementation ... (Seng Hansun)
1431
Table 1. MSE and MAPE values of each method
FX Currency
Pairs
MSE
WMA EMA B-DES B-WEMA
EUR/USD 6.89872E-05 5.48164E-05 5.43481E-05 2.99898E-05
AUD/USD 5.63575E-05 4.61139E-05 4.52854E-05 0.000028893
GBP/USD 0.000353279 0.000279991 0.00027873 0.000150226
USD/JPY 1.690427321 1.334616007 1.279458231 0.689780929
EUR/JPY 1.619346154 1.334106324 1.331148126 0.789796024
Average 0.66205042 0.53382065 0.522196944 0.295957212
FX Currency
Pairs
MAPE
WMA EMA B-DES B-WEMA
EUR/USD 0.586858077 0.512491367 0.522499051 0.36480851
AUD/USD 0.808438995 0.731178343 0.717651605 0.556694176
GBP/USD 0.913286421 0.826037024 0.804903433 0.575606947
USD/JPY 0.912032878 0.810144055 0.774362468 0.558361287
EUR/JPY 0.781677555 0.706504347 0.718902697 0.512141894
Average 0.800458785 0.717271027 0.707663851 0.513522563
From Table 1, we can conclude that all the forecasting methods applied on this study
can be used to forecast forex data with a relatively small error value. Moreover, from the MSE
and MAPE value, we know that exponential moving average has a better accuracy level
compare to weighted moving average method. Brown’s double exponential smoothing has a
better accuracy level compare with exponential moving average, but has worse accuracy than
Brown’s weighted exponential moving average method. Therefore, since B-WEMA excels all
other moving average methods implemented in this study, we could conclude that B-WEMA can
be used to forecast forex data transaction.
4. Conclusion
Brown’s weighted exponential moving average (B-WEMA) had been successfully
implemented to forecast foreign exchange (forex) data transaction. Using five major currency
pairs in forex transactions, i.e. the EUR/USD, AUD/USD, GBP/USD, USD/JPY, and EUR/JPY
closing data, we conclude that B-WEMA can be used and proved to be a better technique
compare with WMA, EMA, and B-DES methods. Based on the experimental results, B-WEMA
gives the smallest mean square error average value at 0.295957212 and the smallest mean
absolute percentage error average value at 0.513522563.
For the future study, we can try to further develop B-WEMA method to predict future
value of time series data where not only trend but also seasonal data spotted. Another study to
combine other moving average methods, such as Holt-Winters triple exponential smoothing can
also be done to complete the variant of WEMA methods.
References
[1] Montgomery DC, Jennings CL, Kulahci M. Introduction to Time Series Analysis and Forecasting. New
Jersey: John Wiley & Sons, Inc. 2008: 2.
[2] Dufour, JM. Introduction to Time Series Analysis. Research Paper. Canada: McGill University.
2008: 1.
[3] Falk, M. (Ed.). A First Course on Time Series Analysis: Example with SAS, Chair of Statistics,
Germany: University of Wurzburg. 2012: 1.
[4] Wei WWS. Time Series Analysis: Univariate and Multivariate Methods, 2nd ed. USA: Pearson
Education, Inc. 2006: 1.
[5] Arsham, H. Time-Critical Decision Making for Business Administration. Retrieved on June 29, 2016
from http://home.ubalt.edu/ntsbarsh/stat-data/forecast.htm.
[6] Wang C. Quantitative Analysis on the Bullwhip Effect in a Supply Chain using Double Moving
Average and Double Exponential Smoothing Forecast. in Proceedings of the International
Symposiums on Information Processing (ISIP). Moscow, Russia. May 2008: 114-118.
[7] Klinker F. Exponential Moving Average versus Moving Exponential Average. Math. Semesterber.
2011; 58(1): 97-107.
[8] Papailias F, Thomakos DD. Improved Moving Average (IMA) Strategies. Market Technician: Journal
of the Society of Technical Analysis. 2012; 72: 12-17.
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432
1432
[9] Kuo S-C, Chen C-C, Chen H-Y, Li, S-T, Wang H-J. A Steady-State Probabilities Model for Fuzzy
Time Series Forecasting. in Proceedings of the 5
th
IIAI International Congress on Advanced Applied
Informatics (IIAI-AAI). Kumamoto, Japan. July 2016: 615-619.
[10] Dong M. Forecasting Language Test Performance with a Back Propagation Neural Network Model. In
Proceedings of the 11
th
International Conference on Natural Computation (ICNC). Zhangjiajie, China.
August 2015: 813-819.
[11] Zhiyuan Z, Yanning Z, Xiaoyuan Z, Yamin J. Research on the Evaluation of Enterprise
Competitiveness based on the Wavelet Neural Network Forecasting System. Proceedings of the
2016 Chinese Control and Decision Conference (CCDC). Yinchuan, China. May 2016: 2674-2677.
[12] Sachdev A, Sharma V. Stock Forecasting Model Based on Combined Fuzzy Time Series and
Genetic Algorithm. Proceedings of the 2015 International Conference on Computational Intelligence
and Communication Networks (CICN). Jabalpur, India. December 2015: 1303-1307.
[13] Yu Y. Evaluation of Wavelet Neural Network for Predicting Financial Market Crisis. Proceedings of
the 1
st
International Conference on Information Science and Engineering (ICISE). Nanjing. 2009:
4861-4864.
[14] Suparman, Doisy M. Hierarchical Bayesian of ARMA Models using Simulated Annealing Algorithm.
TELKOMNIKA Telecommunication Computing Electroncis and Control. 2014; 12(1): 87-96.
[15] Ferdinandoa H, Pasila F, Kuswanto H. Enhanced Neuro-Fuzzy Architecture for Electrical Load
Forecasting. TELKOMNIKA Telecommunication Computing Electroncis and Control. 2010; 8(2): 87-
96.
[16] Hansun S. A New Approach of Brown’s Double Exponential Smoothing Method in Time Series
Analysis. Balkan Journal of Electrical & Computer Engineering (BAJECE). 2016; 4(2): 75-78.
[17] Investopedia. Foreign Exchange. Retrieved on June 29, 2016 from
http://www.investopedia.com/terms/f/foreign-exchange.asp.
[18] Investopedia. Forex-FX. Retrieved on June 29, 2016 from
http://www.investopedia.com/terms/f/forex.asp.
[19] Hansun S. FX Forecasting using B-WEMA: Variant of Brown’s Double Exponential Smoothing.
Proceedings of the 1
st
International Conference on Informatics and Computing (ICIC). Lombok.
October 2016.
[20] Droke C. Moving Averages Simplified. United States of America: Marketplace Books. 2001.
[21] Incrediblecharts. Weighted Moving Average. Retrieved on November 15, 2016 from
https://www.incrediblecharts.com/indicators/weighted_ moving_average.php.
[22] Kinsky R. Charting. Made Simple: A Beginner’s Guide to Charting Success. Melbourne: Wrightbooks.
2011.
[23] Scottrade. Weighted Moving Averages. Retrieved on June 29, 2016 from
https://research.scottrade.com/knowledgecenter/Public/education/Article?docId=35df83fe39f94d1f98
c1d896bff5ada6.
[24] Scottrade. Exponential Moving Averages. Retrieved on November 15, 2016 from
https://www.scottrade.com/knowledge-center/investment-education/research-analysis/technical-
analysis/the-indicators/exponential-moving-averages.html.
[25] Hansun, S. A New Approach of Moving Average Method in Time Series Analysis. Proceedings of the
2013 IEEE International Conference on New Media (CoNMedia). Indonesia. 2013: 1-4.
[26] NIST/SEMATECH e-Handbook of Statistical Methods. Forecasting with Single Exponential
Smoothing. Retrieved on November 15, 2016 from
http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc432.htm.
[27] Incrediblecharts. Exponential Moving Average. Retrieved on November 15, 2016 from
https://www.incrediblecharts.com/indicators/exponential_moving_average.php.
[28] Nau, R. Moving Average and Exponential Smoothing Models. Retrieved on November 15, 2016 from
http://people.duke.edu/~rnau/411avg.htm#HoltLES.
[29] Lawrence, K.D., Klimberg, R.K., and Lawrence, S.M. Fundamentals of Forecasting using Excel. New
York: Industrial Press, Inc. 2009.
[30] Forex Forum. GVI Forex Database: Free Forex Historical Data. Retrieved on November 15, 2016
from http://www.global-view.com/forex-trading-tools/forex-history/index.html.

More Related Content

What's hot

The sampling distribution
The sampling distributionThe sampling distribution
The sampling distribution
Harve Abella
 
Cluster and multistage sampling
Cluster and multistage samplingCluster and multistage sampling
Cluster and multistage sampling
suncil0071
 
Chapter 2: Frequency Distribution and Graphs
Chapter 2: Frequency Distribution and GraphsChapter 2: Frequency Distribution and Graphs
Chapter 2: Frequency Distribution and Graphs
Mong Mara
 

What's hot (20)

Sampling and sampling techniques PPT
Sampling and sampling techniques PPTSampling and sampling techniques PPT
Sampling and sampling techniques PPT
 
Types of Sampling
Types of SamplingTypes of Sampling
Types of Sampling
 
The sampling distribution
The sampling distributionThe sampling distribution
The sampling distribution
 
Systematic sampling in probability sampling
Systematic sampling in probability sampling Systematic sampling in probability sampling
Systematic sampling in probability sampling
 
Cluster and multistage sampling
Cluster and multistage samplingCluster and multistage sampling
Cluster and multistage sampling
 
Introduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec domsIntroduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec doms
 
Descriptive statistics and Inferential Statistics
Descriptive statistics and Inferential StatisticsDescriptive statistics and Inferential Statistics
Descriptive statistics and Inferential Statistics
 
Trend analysis - Lecture Notes
Trend analysis - Lecture NotesTrend analysis - Lecture Notes
Trend analysis - Lecture Notes
 
Lecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdfLecture - ANCOVA 4 Slides.pdf
Lecture - ANCOVA 4 Slides.pdf
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
sampling
samplingsampling
sampling
 
Probability Sampling and Types by Selbin Babu
Probability Sampling and Types by Selbin BabuProbability Sampling and Types by Selbin Babu
Probability Sampling and Types by Selbin Babu
 
Chapter 2: Frequency Distribution and Graphs
Chapter 2: Frequency Distribution and GraphsChapter 2: Frequency Distribution and Graphs
Chapter 2: Frequency Distribution and Graphs
 
SAMPLING
SAMPLINGSAMPLING
SAMPLING
 
Histogram
HistogramHistogram
Histogram
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statistics
 
Cluster sampling
Cluster samplingCluster sampling
Cluster sampling
 
probability and non-probability samplings
probability and non-probability samplingsprobability and non-probability samplings
probability and non-probability samplings
 
Diagrammatic and graphical representation of data
Diagrammatic and graphical representation of dataDiagrammatic and graphical representation of data
Diagrammatic and graphical representation of data
 

Similar to Brown’s Weighted Exponential Moving Average Implementation in Forex Forecasting

Similar to Brown’s Weighted Exponential Moving Average Implementation in Forex Forecasting (20)

Big 5 ASEAN capital markets forecasting using WEMA method
Big 5 ASEAN capital markets forecasting using WEMA methodBig 5 ASEAN capital markets forecasting using WEMA method
Big 5 ASEAN capital markets forecasting using WEMA method
 
Prediction of passenger train using fuzzy time series and percentage change m...
Prediction of passenger train using fuzzy time series and percentage change m...Prediction of passenger train using fuzzy time series and percentage change m...
Prediction of passenger train using fuzzy time series and percentage change m...
 
A REVIEW ON OPTIMIZATION OF LEAST SQUARES SUPPORT VECTOR MACHINE FOR TIME SER...
A REVIEW ON OPTIMIZATION OF LEAST SQUARES SUPPORT VECTOR MACHINE FOR TIME SER...A REVIEW ON OPTIMIZATION OF LEAST SQUARES SUPPORT VECTOR MACHINE FOR TIME SER...
A REVIEW ON OPTIMIZATION OF LEAST SQUARES SUPPORT VECTOR MACHINE FOR TIME SER...
 
Combined cosine-linear regression model similarity with application to handwr...
Combined cosine-linear regression model similarity with application to handwr...Combined cosine-linear regression model similarity with application to handwr...
Combined cosine-linear regression model similarity with application to handwr...
 
Forecasting Gasonline Price in Vietnam Based on Fuzzy Time Series and Automat...
Forecasting Gasonline Price in Vietnam Based on Fuzzy Time Series and Automat...Forecasting Gasonline Price in Vietnam Based on Fuzzy Time Series and Automat...
Forecasting Gasonline Price in Vietnam Based on Fuzzy Time Series and Automat...
 
A Novel Forecasting Based on Automatic-optimized Fuzzy Time Series
A Novel Forecasting Based on Automatic-optimized Fuzzy Time SeriesA Novel Forecasting Based on Automatic-optimized Fuzzy Time Series
A Novel Forecasting Based on Automatic-optimized Fuzzy Time Series
 
Improve Interval Optimization of FLR Using Auto-speed Acceleration Algorithm
Improve Interval Optimization of FLR Using Auto-speed Acceleration AlgorithmImprove Interval Optimization of FLR Using Auto-speed Acceleration Algorithm
Improve Interval Optimization of FLR Using Auto-speed Acceleration Algorithm
 
Prediction of nodes mobility in 3-D space
Prediction of nodes mobility in 3-D space Prediction of nodes mobility in 3-D space
Prediction of nodes mobility in 3-D space
 
Applying Statistical Forecasting Of Project Duration To Earned Schedule-Longe...
Applying Statistical Forecasting Of Project Duration To Earned Schedule-Longe...Applying Statistical Forecasting Of Project Duration To Earned Schedule-Longe...
Applying Statistical Forecasting Of Project Duration To Earned Schedule-Longe...
 
Comparative study to realize an automatic speaker recognition system
Comparative study to realize an automatic speaker recognition system Comparative study to realize an automatic speaker recognition system
Comparative study to realize an automatic speaker recognition system
 
System for Prediction of Non Stationary Time Series based on the Wavelet Radi...
System for Prediction of Non Stationary Time Series based on the Wavelet Radi...System for Prediction of Non Stationary Time Series based on the Wavelet Radi...
System for Prediction of Non Stationary Time Series based on the Wavelet Radi...
 
Supply Chain Planning Paper
Supply Chain Planning PaperSupply Chain Planning Paper
Supply Chain Planning Paper
 
SD-GCM Formulas
SD-GCM FormulasSD-GCM Formulas
SD-GCM Formulas
 
Week 4 forecasting - time series - smoothing and decomposition - m.awaluddin.t
Week 4   forecasting - time series - smoothing and decomposition - m.awaluddin.tWeek 4   forecasting - time series - smoothing and decomposition - m.awaluddin.t
Week 4 forecasting - time series - smoothing and decomposition - m.awaluddin.t
 
Time Series Forecasting Using Novel Feature Extraction Algorithm and Multilay...
Time Series Forecasting Using Novel Feature Extraction Algorithm and Multilay...Time Series Forecasting Using Novel Feature Extraction Algorithm and Multilay...
Time Series Forecasting Using Novel Feature Extraction Algorithm and Multilay...
 
Estimation of global solar radiation by using machine learning methods
Estimation of global solar radiation by using machine learning methodsEstimation of global solar radiation by using machine learning methods
Estimation of global solar radiation by using machine learning methods
 
3122999029.pptx
3122999029.pptx3122999029.pptx
3122999029.pptx
 
Forecasting of electric consumption in a semiconductor plant using time serie...
Forecasting of electric consumption in a semiconductor plant using time serie...Forecasting of electric consumption in a semiconductor plant using time serie...
Forecasting of electric consumption in a semiconductor plant using time serie...
 
Integration Method of Local-global SVR and Parallel Time Variant PSO in Water...
Integration Method of Local-global SVR and Parallel Time Variant PSO in Water...Integration Method of Local-global SVR and Parallel Time Variant PSO in Water...
Integration Method of Local-global SVR and Parallel Time Variant PSO in Water...
 
Maximum likelihood estimation-assisted ASVSF through state covariance-based 2...
Maximum likelihood estimation-assisted ASVSF through state covariance-based 2...Maximum likelihood estimation-assisted ASVSF through state covariance-based 2...
Maximum likelihood estimation-assisted ASVSF through state covariance-based 2...
 

More from TELKOMNIKA JOURNAL

Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...
TELKOMNIKA JOURNAL
 
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
TELKOMNIKA JOURNAL
 
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
TELKOMNIKA JOURNAL
 
Adaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingAdaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imaging
TELKOMNIKA JOURNAL
 
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
TELKOMNIKA JOURNAL
 

More from TELKOMNIKA JOURNAL (20)

Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...
 
Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...
 
Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...
 
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
 
Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...
 
Efficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antennaEfficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antenna
 
Design and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fireDesign and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fire
 
Wavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio networkWavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio network
 
A novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bandsA novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bands
 
Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...
 
Brief note on match and miss-match uncertainties
Brief note on match and miss-match uncertaintiesBrief note on match and miss-match uncertainties
Brief note on match and miss-match uncertainties
 
Implementation of FinFET technology based low power 4×4 Wallace tree multipli...
Implementation of FinFET technology based low power 4×4 Wallace tree multipli...Implementation of FinFET technology based low power 4×4 Wallace tree multipli...
Implementation of FinFET technology based low power 4×4 Wallace tree multipli...
 
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G systemEvaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
 
Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...
 
Reagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensorReagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensor
 
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
 
A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...
 
Electroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networksElectroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networks
 
Adaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingAdaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imaging
 
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
 

Recently uploaded

Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
Kira Dess
 

Recently uploaded (20)

8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Presentation on Slab, Beam, Column, and Foundation/Footing
Presentation on Slab,  Beam, Column, and Foundation/FootingPresentation on Slab,  Beam, Column, and Foundation/Footing
Presentation on Slab, Beam, Column, and Foundation/Footing
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentation
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
Introduction-to- Metrology and Quality.pptx
Introduction-to- Metrology and Quality.pptxIntroduction-to- Metrology and Quality.pptx
Introduction-to- Metrology and Quality.pptx
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdf
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Station
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 

Brown’s Weighted Exponential Moving Average Implementation in Forex Forecasting

  • 1. TELKOMNIKA, Vol.15, No.3, September 2017, pp. 1425~1432 ISSN: 1693-6930, accredited A by DIKTI, Decree No: 58/DIKTI/Kep/2013 DOI: 10.12928/TELKOMNIKA.v15i3.5410  1425 Received April 15, 2017; Revised June 20, 2017; Accepted July 7, 2017 Brown’s Weighted Exponential Moving Average Implementation in Forex Forecasting Seng Hansun* 1 , Subanar 2 1 Universitas Multimedia Nusantara, Program Studi Teknik Informatika, Fakultas Teknik dan Informatika, Jl. Boulevard Gading Serpong, Scientia Garden, Tangerang, Indonesia 2 Universitas Gadjah Mada, Jurusan Matematika FMIPA UGM, Sekip Utara, Yogyakarta, Indonesia *Corresponding author, e-mail: hansun@umn.ac.id 1 , subanar@yahoo.com 2 Abstract In 2016, a time series forecasting technique which combined the weighting factor calculation formula found in weighted moving average with Brown’s double exponential smoothing procedures had been introduced. The technique is known as Brown’s weighted exponential moving average (B-WEMA), as a new variant of double exponential smoothing method which does the exponential filter processes twice. In this research, we will try to implement the new method to forecast some foreign exchange, or known as forex data, including EUR/USD, AUD/USD, GBP/USD, USD/JPY, and EUR/JPY data. The time series data forecasting results using B-WEMA then be compared with other conventional and hybrid moving average methods, such as weighted moving average (WMA), exponential moving average (EMA), and Brown’s double exponential smoothing (B-DES). The comparison results show that B-WEMA has a better accuracy level than other forecasting methods used in this research. Keywords: Brown’s double exponential smoothing, B-WEMA, exponential moving average, foreign exchange, time series forecasting, weighted moving average Copyright © 2017 Universitas Ahmad Dahlan. All rights reserved. 1. Introduction Time series is a time-oriented or chronological sequence of observations on a variable of interest [1]. There are two types of time series data, i.e. continuous time series where observations recorded continuously over some time intervals, and discrete time series where observations are made at fixed time intervals [2]. According to Dufour [2], the discrete time series data is more commonly used than the continuous time series data, especially in economic related field. In order to understand the characteristics of time series data, there are so many time series analysis methods that have been developed [3, 4]. One of their goal is to forecast or predict the future values from a given time series data [5]. To achieve that goal, many researchers had conducted and developed, not only conventional methods as we can find in the works of Wang [6], Klinker [7], and Papailias and Thomakos [8], but also the soft computing methods such as fuzzy, neural networks, or their hybrid methods [9-15]. In mid-2016, a new technique to forecast future data in time series analysis had been introduced. The technique is called as Brown’s Weighted Exponential Moving Average (B- WEMA) since it is a hybrid method which combined the weighting factor calculation formula found in weighted moving average with Brown’s double exponential smoothing method. Based on the research’s results as presented in [16], B-WEMA has a better accuracy value compare to other conventional moving average methods. In this study, we will try to implement B-WEMA in a real financial time series data, i.e. the foreign exchange (forex/ FX). Forex is the exchange of one currency into another currency [17] and the market is said to be the largest and most liquid market in the whole world [18]. So the prediction of forex time series data by using its historical transaction is very important, that the decision of selling or buying the forex can be taken more precisely. This study is the extended version of the research that had been published in late 2016 [19]. If on that research, the author only used one forex time series data (i.e. the EUR/USD closing data) and compared the B-WEMA forecasting results’ with weighted moving average (WMA) and Brown’s double exponential smoothing (B-DES), in this research we will try
  • 2.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432 1426 to implement B-WEMA in five major currency pairs in forex transactions (i.e. EUR/USD, AUD/USD, GBP/USD, USD/JPY, and EUR/JPY closing data). Furthermore, exponential moving average (EMA) will also be used as a comparison method in spite of WMA and B-DES methods. To calculate the accuracy level of all forecasting methods, we will use mean square error (MSE) and mean absolute percentage error (MAPE). The next section will describe in detail the three moving average methods used in this research, i.e. WMA, EMA, and B-DES; and the hybrid moving average method, i.e. B-WEMA. Furthermore, MSE and MAPE forecast error measurements will be explained on the same section, while the forecasting results will be graphed and explained on Section 3. Section 4 will conclude the research’s results and other findings which can be used as future research’s topics. 2. Research Method This chapter is begun with the discussion of weighted moving average, exponential moving average, and Brown’s double exponential smoothing methods. The hybrid Brown’s weighted exponential moving average method will be described later. The explanation of mean square error and mean absolute percentage error as the forecast error measurements will end this section. 2.1. Weighted Moving Average (WMA) Weighted moving average is designed to put more weight on recent data and less weight on past data [20]. Usually, the weighting factor is calculated from the sum of days used in WMA calculation [21,22], with the formula can be described as follows [23] ( ) ( ) ( ) ( ) (1) where refers to the period or time interlude used in forecasting formula and refers to the actual value of time series data at point . 2.2. Exponential Moving Average (EMA) The development of weighted moving average leads to exponential moving average. Just like WMA, exponential moving average also places more weight on recent data [24], but unlike WMA, the weight for each older data decreases exponentially, so it’s never reaching zero value [25]. EMA is also known as single exponential smoothing technique and can be used to predict any time series data. As described by NIST [26], EMA can be calculated recursively as: , for ( ) , (2) where is the actual value at time period , is the smoothed value of EMA at time period , and represents a constant smoothing factor between 0 and 1. As can be found in [24] and [27], can be calculated using the formula ( ) (3) where is the number of days used as time period in the forecasting formula. 2.3. Brown’s Double Exponential Smoothing (B-DES) Brown’s double exponential smoothing is a type of double exponential smoothing technique, which is an improvement of single exponential smoothing or exponential moving average. It uses two different smoothed series, both of them are centered at different points on time [28]. It is said that the double exponential smoothing techniques can predict future values of time series data where a trend pattern spotted better than the single exponential smoothing technique. Nau [28] explained the procedures of B-DES as follows. First, we need to find the single-smoothed series, , by applying EMA to time series , as:
  • 3. TELKOMNIKA ISSN: 1693-6930  Brown’s Weighted Exponential Moving Average Implementation ... (Seng Hansun) 1427 ( ) (4) Then, by using the single-smoothed series, we could find the double-smoothed series, denoted as , by applying EMA to , ( ) (5) Next, we could get the forecast value , for any , by (6) where refers to the predicted level at time , refers to the predicted trend at time , which both of them can be found as follow: (7) ( ) (8) 2.4. Brown’s Weighted Exponential Moving Average (B-WEMA) Brown’s weighted exponential moving average was first introduced in 2016 [16]. It is an improved version of weighted exponential moving average (WEMA) method which had been introduced in 2013 [25]. Using the basic principle found in WEMA, B-WEMA combines the weighting factor calculation formula found in weighted moving average with Brown’s double exponential smoothing method. Same with other double exponential smoothing techniques, B- WEMA could be used to predict future values of time series data with a trend pattern. The procedures of B-WEMA method can be explained as three recursive steps [16]: (1) Using equation (1) for a given time series data and periods, we calculate the base value, . (2) Using the base value obtained, we calculate the prediction value by implementing equation (4)-(8), but we start the model by letting (9) (3) Return to the first step until all data point in the time series data given have ended. 2.5. Mean Square Error (MSE) The most popular technique to measure forecast error is mean square error. It is the average of the square error sum between the real data and the forecasted data. We can use the formula below to find MSE [29], ∑ (10) where denotes the number of data point used in the forecasting and denotes the forecasting error, which can be found from the differences of real data ( ) and forecasted data (̂ ). 2.6. Mean Absolute Percentage Error (MAPE) Mean absolute percentage error is another popular forecast error measurement technique. It gives us an indication about how much the average of absolute error of the forecasted data compare to the actual data. The formula can be expressed as [29], ∑ | | (11) where denotes the number of data point used in the forecasting and denotes the forecasting error from the differences of real and forecasted data, ̂ .
  • 4.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432 1428 3. Results and Discussion On this study, implementation of Brown’s weighted exponential moving average on a real case financial data, i.e. the foreign exchange (forex) was conducted. Therefore, five major currency pairs in forex transactions, i.e. EUR/USD, AUD/USD, GBP/USD, USD/JPY, and EUR/JPY closing data were recorded daily from November 16 th , 2015 to November 15 th , 2016 [30] and be used as the dataset. Then, B-WEMA together with WMA, EMA, and B-DES will be implemented on the same dataset. We used MSE and MAPE criteria to calculate the accuracy level of each method implemented on this study. 3.1. Forex Forecasting Implementation Figure 1 shows us the graph of forecasting results on EUR/USD closing data using WMA, EMA, B-DES, and B-WEMA methods. Moreover, Figure 2 shows the forecasting results using the same methods for AUD/USD dataset, Figure 3 shows the forecasting results for GBP/USD dataset, Figure 4 shows the forecasting results for USD/JPY dataset, and Figure 5 shows the forecasting results for EUR/JPY dataset. The real (actual) forex closing data are indicated by the blue line on the graph, while the predicted data are indicated by the red line. Figure 1. Forecasting results for EUR/USD (a) WMA forecasting results (b) EMA forecasting results (c) B-DES forecasting results (d) B-WEMA forecasting results
  • 5. TELKOMNIKA ISSN: 1693-6930  Brown’s Weighted Exponential Moving Average Implementation ... (Seng Hansun) 1429 Figure 2. Forecasting results for AUD/USD Figure 3. Forecasting results for GBP/USD (a) WMA forecasting results (b) EMA forecasting results (c) B-DES forecasting results (d) B-WEMA forecasting results (a) WMA forecasting results (b) EMA forecasting results (c) B-DES forecasting results (d) B-WEMA forecasting results
  • 6.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432 1430 Figure 4. Forecasting results for USD/JPY Figure 5. Forecasting results for EUR/JPY 4.2. MSE and MAPE Comparison The experiments then continued to calculate the accuracy of each moving average method implemented on the system. Mean square error (MSE) and mean absolute percentage error (MAPE) criteria were used as forecast error measurement tools. The results of MSE and MAPE can be seen on Table 1. (a) WMA forecasting results (b) EMA forecasting results (c) B-DES forecasting results (d) B-WEMA forecasting results (a) WMA forecasting results (b) EMA forecasting results (c) B-DES forecasting results (d) B-WEMA forecasting results
  • 7. TELKOMNIKA ISSN: 1693-6930  Brown’s Weighted Exponential Moving Average Implementation ... (Seng Hansun) 1431 Table 1. MSE and MAPE values of each method FX Currency Pairs MSE WMA EMA B-DES B-WEMA EUR/USD 6.89872E-05 5.48164E-05 5.43481E-05 2.99898E-05 AUD/USD 5.63575E-05 4.61139E-05 4.52854E-05 0.000028893 GBP/USD 0.000353279 0.000279991 0.00027873 0.000150226 USD/JPY 1.690427321 1.334616007 1.279458231 0.689780929 EUR/JPY 1.619346154 1.334106324 1.331148126 0.789796024 Average 0.66205042 0.53382065 0.522196944 0.295957212 FX Currency Pairs MAPE WMA EMA B-DES B-WEMA EUR/USD 0.586858077 0.512491367 0.522499051 0.36480851 AUD/USD 0.808438995 0.731178343 0.717651605 0.556694176 GBP/USD 0.913286421 0.826037024 0.804903433 0.575606947 USD/JPY 0.912032878 0.810144055 0.774362468 0.558361287 EUR/JPY 0.781677555 0.706504347 0.718902697 0.512141894 Average 0.800458785 0.717271027 0.707663851 0.513522563 From Table 1, we can conclude that all the forecasting methods applied on this study can be used to forecast forex data with a relatively small error value. Moreover, from the MSE and MAPE value, we know that exponential moving average has a better accuracy level compare to weighted moving average method. Brown’s double exponential smoothing has a better accuracy level compare with exponential moving average, but has worse accuracy than Brown’s weighted exponential moving average method. Therefore, since B-WEMA excels all other moving average methods implemented in this study, we could conclude that B-WEMA can be used to forecast forex data transaction. 4. Conclusion Brown’s weighted exponential moving average (B-WEMA) had been successfully implemented to forecast foreign exchange (forex) data transaction. Using five major currency pairs in forex transactions, i.e. the EUR/USD, AUD/USD, GBP/USD, USD/JPY, and EUR/JPY closing data, we conclude that B-WEMA can be used and proved to be a better technique compare with WMA, EMA, and B-DES methods. Based on the experimental results, B-WEMA gives the smallest mean square error average value at 0.295957212 and the smallest mean absolute percentage error average value at 0.513522563. For the future study, we can try to further develop B-WEMA method to predict future value of time series data where not only trend but also seasonal data spotted. Another study to combine other moving average methods, such as Holt-Winters triple exponential smoothing can also be done to complete the variant of WEMA methods. References [1] Montgomery DC, Jennings CL, Kulahci M. Introduction to Time Series Analysis and Forecasting. New Jersey: John Wiley & Sons, Inc. 2008: 2. [2] Dufour, JM. Introduction to Time Series Analysis. Research Paper. Canada: McGill University. 2008: 1. [3] Falk, M. (Ed.). A First Course on Time Series Analysis: Example with SAS, Chair of Statistics, Germany: University of Wurzburg. 2012: 1. [4] Wei WWS. Time Series Analysis: Univariate and Multivariate Methods, 2nd ed. USA: Pearson Education, Inc. 2006: 1. [5] Arsham, H. Time-Critical Decision Making for Business Administration. Retrieved on June 29, 2016 from http://home.ubalt.edu/ntsbarsh/stat-data/forecast.htm. [6] Wang C. Quantitative Analysis on the Bullwhip Effect in a Supply Chain using Double Moving Average and Double Exponential Smoothing Forecast. in Proceedings of the International Symposiums on Information Processing (ISIP). Moscow, Russia. May 2008: 114-118. [7] Klinker F. Exponential Moving Average versus Moving Exponential Average. Math. Semesterber. 2011; 58(1): 97-107. [8] Papailias F, Thomakos DD. Improved Moving Average (IMA) Strategies. Market Technician: Journal of the Society of Technical Analysis. 2012; 72: 12-17.
  • 8.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 3, September 2017: 1425 – 1432 1432 [9] Kuo S-C, Chen C-C, Chen H-Y, Li, S-T, Wang H-J. A Steady-State Probabilities Model for Fuzzy Time Series Forecasting. in Proceedings of the 5 th IIAI International Congress on Advanced Applied Informatics (IIAI-AAI). Kumamoto, Japan. July 2016: 615-619. [10] Dong M. Forecasting Language Test Performance with a Back Propagation Neural Network Model. In Proceedings of the 11 th International Conference on Natural Computation (ICNC). Zhangjiajie, China. August 2015: 813-819. [11] Zhiyuan Z, Yanning Z, Xiaoyuan Z, Yamin J. Research on the Evaluation of Enterprise Competitiveness based on the Wavelet Neural Network Forecasting System. Proceedings of the 2016 Chinese Control and Decision Conference (CCDC). Yinchuan, China. May 2016: 2674-2677. [12] Sachdev A, Sharma V. Stock Forecasting Model Based on Combined Fuzzy Time Series and Genetic Algorithm. Proceedings of the 2015 International Conference on Computational Intelligence and Communication Networks (CICN). Jabalpur, India. December 2015: 1303-1307. [13] Yu Y. Evaluation of Wavelet Neural Network for Predicting Financial Market Crisis. Proceedings of the 1 st International Conference on Information Science and Engineering (ICISE). Nanjing. 2009: 4861-4864. [14] Suparman, Doisy M. Hierarchical Bayesian of ARMA Models using Simulated Annealing Algorithm. TELKOMNIKA Telecommunication Computing Electroncis and Control. 2014; 12(1): 87-96. [15] Ferdinandoa H, Pasila F, Kuswanto H. Enhanced Neuro-Fuzzy Architecture for Electrical Load Forecasting. TELKOMNIKA Telecommunication Computing Electroncis and Control. 2010; 8(2): 87- 96. [16] Hansun S. A New Approach of Brown’s Double Exponential Smoothing Method in Time Series Analysis. Balkan Journal of Electrical & Computer Engineering (BAJECE). 2016; 4(2): 75-78. [17] Investopedia. Foreign Exchange. Retrieved on June 29, 2016 from http://www.investopedia.com/terms/f/foreign-exchange.asp. [18] Investopedia. Forex-FX. Retrieved on June 29, 2016 from http://www.investopedia.com/terms/f/forex.asp. [19] Hansun S. FX Forecasting using B-WEMA: Variant of Brown’s Double Exponential Smoothing. Proceedings of the 1 st International Conference on Informatics and Computing (ICIC). Lombok. October 2016. [20] Droke C. Moving Averages Simplified. United States of America: Marketplace Books. 2001. [21] Incrediblecharts. Weighted Moving Average. Retrieved on November 15, 2016 from https://www.incrediblecharts.com/indicators/weighted_ moving_average.php. [22] Kinsky R. Charting. Made Simple: A Beginner’s Guide to Charting Success. Melbourne: Wrightbooks. 2011. [23] Scottrade. Weighted Moving Averages. Retrieved on June 29, 2016 from https://research.scottrade.com/knowledgecenter/Public/education/Article?docId=35df83fe39f94d1f98 c1d896bff5ada6. [24] Scottrade. Exponential Moving Averages. Retrieved on November 15, 2016 from https://www.scottrade.com/knowledge-center/investment-education/research-analysis/technical- analysis/the-indicators/exponential-moving-averages.html. [25] Hansun, S. A New Approach of Moving Average Method in Time Series Analysis. Proceedings of the 2013 IEEE International Conference on New Media (CoNMedia). Indonesia. 2013: 1-4. [26] NIST/SEMATECH e-Handbook of Statistical Methods. Forecasting with Single Exponential Smoothing. Retrieved on November 15, 2016 from http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc432.htm. [27] Incrediblecharts. Exponential Moving Average. Retrieved on November 15, 2016 from https://www.incrediblecharts.com/indicators/exponential_moving_average.php. [28] Nau, R. Moving Average and Exponential Smoothing Models. Retrieved on November 15, 2016 from http://people.duke.edu/~rnau/411avg.htm#HoltLES. [29] Lawrence, K.D., Klimberg, R.K., and Lawrence, S.M. Fundamentals of Forecasting using Excel. New York: Industrial Press, Inc. 2009. [30] Forex Forum. GVI Forex Database: Free Forex Historical Data. Retrieved on November 15, 2016 from http://www.global-view.com/forex-trading-tools/forex-history/index.html.