Technical Analysis of Forex by MACD Indicator
Technical Analysis of Forex by MACD Indicator
discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/274071851
CITATIONS READS
0 403
1 author:
SEE PROFILE
All in-text references underlined in blue are linked to publications on ResearchGate, Available from: Ziba Habibi Lashkary
letting you access and read them immediately. Retrieved on: 06 November 2016
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
159
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
closing) with a specific formula called indicators. TO the underlying security. Moreover, using Exponential Moving
forecasting future price changes can use from the value of Averages (EMAs), opposite to Simple Moving Averages
result. They are used to offer more information about market (SMAs) can remove some lags.
to be applied by the investors in decision making. Indicators MACD as a momentum indicator can predict the moves in the
based on their functions are sorted to four groups; trend underlying security. MACD divergences are basic elements in
indicators, volume (strength) indicators, volatility indicators forecasting a trend alters. A Negative Divergence signal which
and momentum indicators as follow [6]. bullish momentum is waning and a change in trend from
bullish to bearish is possible, too. It warns the traders to take
A. Trend Indicators benefits in long positions or for violent traders setting off a
Explain continue to move in one direction in the exchange short position.
rate over time, called a trend. Trends have three directions; Another advantage of MACD is its application in daily,
sideways, down and up. Trend indicators level variable rate weekly or monthly charts. In this regard, the divergence and
data to produce a mix of market direction. There are some convergence of two moving averages will be shown by the
Trend Indicators for example Moving Averages (MA), MACD. Although, the standard setting defined for the MACD
MACD, P-SAR and Trend lines. is the difference between the 12 and 26-period EMA, any
combination of moving averages can be applied. In addition,
III. MACD the set of moving averages to be applied in MACD can be
changed for each individual security. For example, a faster set
The MACD (Moving Average Convergence/Divergence) is
in category of trend indicators which shows relationship of moving averages may be suitable for weekly charts. On the
between prices and moving averages. The MACD was other hand, slower moving averages may appropriate to help
introduced by Gerald Appel, in 1970s. It is the different smooth the data for volatile stocks. Regarding this flexibility,
between exponential moving averages for 26 and 12 days. the MACD can be adjusted to the trading style, risk tolerance
There is a plot of another exponential average for 9 days and objectives of the traders.
which is placed on top of the MACD to indicate long/short
opportunities; it is called “trigger” or “signal” [22]. IV. SCOPE OF THE STUDY
The MACD is very simple to calculate; the difference In this study real data of trading on hourly basis and for 10
between exponential moving averages for 26 and 12 days. years from January 2001 to December 2010 is used. This set
There is a plot of another exponential average for 9 days of data with numerous transactions will produce more reliable
which is placed on top of the MACD to indicate long/short results. The present study is aimed to assess the major
opportunities; it is called “trigger” or “signal” (Appel, 2008).
indicator to forecast the right time for buy and sell in the
Interpretation of MACD is easy to be used for traders. In
market in order to avoid lose and gain profits.
this study whenever the MACD crosses the zero upward, it
In this study four currencies, namely, EURUSD, GBPUSD,
means there is a buy opportunity while if the MACD crosses
the zero downward, there is a sell opportunity as shown in USDJPY, and USDCHF are assessed with the employment of
Figure 3.4. On the other hand, when the value of MACD in the MACD at which buy and sell signals are identified. The period
first period (hour) is less than zero and in the second and third of the present study is ten years which is beginning from
periods is more than zero, there is a buy signal in fourth January 2001.
period. While, when the value of MACD in the first period The currencies in this study evaluated separately to avoid
(hour) is more than zero and in the second and third periods is the effects of one indicator on the other’s result. That is, for
less than zero, there is a sell signal in fourth period. each currency the indicator applied and examined separately.
Hence, there are four currencies and one indicator and
combination of them are called traders. Accordingly, each one
of the four virtual traders works only with the indicator and
currency.
160
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
161
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
• The time for trading is upon receiving the buy or sale signal
from the indicators and it is 24 hours a day per 5 days a
week.
• In case there is no new order or a position do not attain the
level of take profit or stop loss, after 10 hours the order
automatically will be closed; hence, profit or loss will be
calculated based on the last 10 hours.
• No restriction has been considered for each order, because it
Fig. 5 Final percentage of EURUSD buy and sell using MACD
is only 7% of the capital balance.
indicator for the years 2001 to 2010
• The least amount of the order is 0.01 of the lot.
The ordering did not stop during 10 years period of this
TABLE I study which show the capital could reach to end of project.
SUMMARY OF THE FINAL OUTCOMES USING MACD INDICATOR AND ITS Moreover, the final profit generated by buy orders is 1706 pips
RELATED INTERPRETATIONS FOR THE YEARS 2001 TO 2010
which is resulted from 13165 pips profit and 11459 pips loss
while the final loss created by sell orders is 1524 pips which is
resulted from 11259 pips profit and 12783 pips loss. The
profit resulted from buy orders is more than loss from sell
orders and covered it and has extra 182 pips profit. This profit
generated by 1524 pips loss from sell transactions and 1706
pips profit from buy orders.
The more detail results of using this indicator for EURUSD
is given in Table II and as it is clear from the Table, 183 pips
profit created within first 10 years.
VII. PROCESS
Results and discussion of the study are presented based on
In most of years the buy transactions generated profit while
applied methodology; that is, data collection, data assessment,
sell transactions resulted loss. Moreover, the MACD
data processing, and computing P-SAR by application of
interpretations made profitable signals in five years while there
VHTS. Then, by interpreting the indicator for the four
is loss in four years and one year is neutral. Moreover, Table
currencies EURUSD, GBPUSD, USDCHF and USDJPY, buy
4.8 shows MACD is producing more profitable buy signals
and sell signals have been determined. Afterward, based on the
compared to sell signals. However, the last result is positive
assumptions, proper trading software has been run to gain
and show profit but it could not add money to its capital due to
profit or loss of each currency regarding indicator application,
the time of generation. It means at the beginning of the study
therefore there are four virtual traders.
period the amount of capital is full and since each order is 7%
A. EURUSD of capital balance, the amount of order also would be big.
With the employment of MACD for EURUSD in order to Therefore, the loss or profit for beginning of study time area
identifying the signals to enter and exit the market, 1899 would be bigger compare to end of study period. Since at the
orders include 955 buy orders and 944 sell orders has been first MACD made loss the next generated profit had lower
proceeded. Total numbers of buy and sell of EURUSD with cash generation even their pips of profit are higher than their
the employment of Moving Average Convergence/Divergence previous pips of loss.
(MACD) indicator during ten years (2001-2010) is presented B. GBPUSD
in Figure 5.
There are 1856 transactions including 926 buy and 930 sell
orders which are created by employment of MACD indicator
for GBPUSD which continued trading until end of study time
scale. Total numbers of buy and sell of GBPUSD with the
employment of Moving Average Convergence/Divergence
(MACD) indicator during ten years (2001-2010) is presented
in Figure 6.
162
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
The ordering is stopped in April 2009 since the capital was not
enough to continue the trading. It means trading with MACD
results loss more than benefit and it caused decreasing capital
while the time is passing. Moreover, the final loss created by
buy orders is 2309 pips which is resulted from 10146 pips
profit and 12455 pips loss while the final loss created by sell
orders is 2411 pips which is resulted from 10259 pips profit
Fig. 6 Final percentage of GBPUSD buy and sell using MACD and 12670 pips loss. Finally, there are 4720 pips loss created
indicator for the years 2001 to 2010 by sell and buy orders from 20405 pips profit and 25125 pips
loss.
As a result of those transactions 3314 pips loss has been
According to Table 4 there is no clear relationship between
made which included 24391 pips profit and 27705 pips loss. In
profit/loss of buy and sell transactions since in some years the
other word, 3007 pips loss of sell transactions and 307 pips
profit/loss of buy orders are opposite the profit/loss of sell
loss of buy transactions created 3314 pips final loss within ten
transactions and in some years the relationship is straight.
years. The 3314 pips loss which created by sell transactions
Finally the losses which generated by sell and buy orders are
included 11555 pips profit and 14562 pips loss. While, the 307
so close to each other.
pips loss generated by buy orders included 12836 pips profit
and 13143 pips loss. TABLE IV
Yearly details of profit and loss using the foresaid indicator YEARLY OUTCOME OF USDCHF TRADING USING MACD INDICATOR
for GBPUSD are presented in Table 3. The table shows the
progress of the 3314 pips loss production within ten years. As
it is clear in Table 4, the amount of profit in three years is
considerable while it has been covered by the other years’
losses. Moreover, it shows this indicator is producing more
profitable buy signals compared to sell signals.
TABLE III
YEARLY OUTCOME OF GBPUSD TRADING USING MACD INDICATOR
D. USDJPY
MACD signals for USDJPY results 1180 pips loss which
included 21665 pips profit against 22845 pips loss and the
trading period did not last within the ten years. This 1180 pips
loss contained 418 pips loss from sell transactions and 762
pips loss from buy transactions. There are 854 sell orders and
848 buy orders generated by MACD interpretations. Total
numbers of buy and sell of USDJPY with the employment of
Moving Average Convergence/Divergence (MACD) indicator
C. USDCHF during ten years (2001-2010) is presented in Figure 8.
With the implement of MACD for USDCHF in order to
discovering the signals to buy and sell the market, 1678 orders
include 832 buy orders and 846 sell orders has been
proceeded. Total numbers of buy and sell of USDCHF with
the employment of Moving Average Convergence/Divergence
(MACD) indicator during ten years (2001-2010) presented in
Figure 7.
163
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
was loss. Furthermore, it can be seen that the sell signal • If a position do not reach to its level of take profit or stop
worked better compared to buy signals since they created loss and there is no new order, the order will be closed
profit in 2002, 2003, 2004, 2008, 2009 and 2010 and the final automatically after 10 periods (hours) and profit/loss is
loss of them is about half of buy orders’ loss. calculated based on the last 10 hours.
• There is no limitation in amount of each order since it is 7%
TABLE V
of the capital balance.
YEARLY OUTCOME OF USDJPY TRADING USING MACD INDICATOR
• Minimum order is 0.01 of the lot. These assumptions have
been chosen based on researchers’ experiences in Forex
market and studying Forex market, capital management and
risk management to make the result comparable and unify.
The following findings have been obtained from the current
study:
• MACD had better results with trading with EURUSD.
• The most effective combination of MACD-Currency
regarding generation of profit has been identified to be
MACD-EURUSD with considering the assumptions of this
VIII. ANALYSIS study. MACD performed not bad with EURUSD as it has
Final profit/loss of all four currencies trading with the created $8,068.53 cash at the end of ten years period of
employment of Moving Average Convergence/Divergence trading (Table 1).
(MACD) indicator for the period of ten years (2001-2010) is • The other finding was that the total loss generated
presented in Figure 9. by buy signals for all four traders is 1,672 pips however sell
signals generate 7,360 pips loss which the difference
is considerable. It shows MACD produces more profitable
buy signals than sell signals.
• One of the notable results generated from VHTS was
computing the amount of commission each trader has been
paid based on market rates. The commission paid is shown
in Table 1 indicating that brokers made profit regardless
of gaining or losing of traders
ACKNOWLEDGMENT
The special thanks go to our advisor Dr. Arash Habibi
Fig. 9 Final profit/loss with the employment of MACD
Lashkari for his guidance and advices in this project.
indicator for trading the four currencies within ten years
(2001-2010)
REFERENCES
IX. CONCLUSION [1] YAZDI, S.H.M. and Z.H. LASHKARY, Technical analysis of FOREX
Effectiveness of the MACD indicator for four pair by P-SAP Indicator in International Islamic Accounting and Finance
Conference (IIAFC). 2012: Malaysia.
currencies; EURUSD, GBPUSD, USDCHF and USDJPY [2] Amiri, M., et al., An integrated eigenvector-DEA-TOPSIS methodology
based on profitability of the buy and sell signals has been for portfolio risk evaluation in the FOREX spot market. Expert Systems
evaluated. with Applications, 2010. 37(1): p. 509-516.
To unify the trading condition in order to make the results [3] Cerrato, M., N. Sarantis, and A. Saunders, An investigation of customer
order flow in the foreign exchange market. Journal of Banking &
comparable, a series of assumptions has been applied as Finance, 2011.
follows: [4] Ding, L. and J. Hiltrop, The electronic trading systems and bid-ask
• Trading period was ten years starting from 1st January of spreads in the foreign exchange market. Journal of International
2001. Financial Markets, Institutions and Money, 2010. 20(4): p. 323-345.
[5] Westerhoff, F., Speculative markets and the effectiveness of price
• Traders can only trade one of the four pair currencies which limits. Journal of Economic Dynamics and Control, 2003. 28(3): p. 493-
are EUR/USD, GBP/USD, USD/JPY and USD/CHF. 508.
• Traders cannot open more than one position at the same time [6] Achelis, S.B., Technical Analysis from A to Z. 2001: McGraw-Hill.
and upon a new order, the pervious order would be closed if [7] Yen, S.M.-F. and Y.-L. Hsu, Profitability of technical analysis in
financial and commodity futures markets -- A reality check. Decision
still is open. Support Systems, 2010. 50(1): p. 128-139.
• Take profit and stop loss for each order is 30 pips. [8] Li, J. and E.P.K. Tsang. Improving technical analysis predictions: an
• The volume of order cannot be more than 7% of the application of genetic programming. 1999.
[9] Sullivan, R., A. Timmermann, and H. White, Data-snooping, technical
traders’ capital balance. trading rule performance, and the bootstrap. Journal of Finance, 1999:
• Initial capital for each trader is $10,000 p. 1647-1691.
• Trading time is 24 hours and 5 days a week and upon [10] Sweeney, R.J., Beating the foreign exchange market. The Journal of
receive the buy or sale signal from the indicators Finance, 1986. 41(1): p. 163-182.
[11] Sweeney, R.J., Some new filter rule tests: Methods and results. Journal
of Financial and Quantitative Analysis, 1988. 23(03): p. 285-300.
164
International Journal of Humanities and Management Sciences (IJHMS) Volume 1, Issue 2 (2013) ISSN 2320–4044 (Online)
165