Professional Documents
Culture Documents
Ijaerv13n13 02
Ijaerv13n13 02
11018-11024
© Research India Publications. http://www.ripublication.com
Luis Ruiz-Franco
Universidad Nacional de Colombia.
Miguel Jiménez-Gómez
Universidad Nacional de Colombia.
Erick Lambis-Alandete
Instituto Tecnológico Metropolitano - ITM
11018
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 13 (2018) pp. 11018-11024
© Research India Publications. http://www.ripublication.com
other graphs used with great frequency, these are line graphs, 𝑆𝑀𝐴𝑡,𝑛 is the simple moving average of n periods in time t and
point graphs, candlestick graphs, Renko graphs, Heiken Ashi 𝑃𝑖 is the closing price at time t.
graphs, Kagi graphs and tick or transaction graphs.
This indicator is used in multiple strategies, to determine the
The tick graphs unlike most other graphs is not formed purchase / sale entry rule of the system, the exit rule or using
according to a period of time, the time is irrelevant in this graph different means to find crosses and thus determine trend
presents the same number of ticks either in an hour as in a day changes [14].
since what generates the Tick graph is the number of
transactions that are made. For example, a tick chart of 610
transactions is made up of bars representing the price variation B. Exponential Moving Average (EMA)
every 610 transactions regardless of contract size. This
characteristic related to volume is what makes the use of tick The exponential moving average complies with the same
charts for intraday trading suitable. Figure 1 shows an example function as the simple moving average, that is, it offers a
of a tick graph; on the horizontal axis it is observed that the smoothing of the price action for a period. The only difference
number of bars does not depend on time. is that the EMA gives more importance to the latest data
obtained by what is more suitable to find trends than the SMA
[14]. The EMA can be calculated with equation 2.
Indicators for technical analysis 2 2
𝐸𝑀𝐴𝑛 = ∗ 𝑃𝑡−1 + (1 − ) ∗ 𝐸𝑀𝐴𝑛−1 [2]
𝑘+1 𝑘+1
The indicators in technical analysis are commonly used and
discussed, with these opportunities are sought and rules, k is the number of periods, n is the position of the current period
systems or strategies of purchase / sale are created in the market observed, 𝑃𝑡−1 is the closing price in the previous position, and
to obtain a benefit [11]. Technical indicators transform the 𝐸𝑀𝐴𝑛−1 is the exponential moving average for the previous
historical data of prices such as opening price, the highest, the period.
lowest, closing price, or volume to yield a series of time that
allows to find patterns, anomalies, trends or determine
relationships with other information or series [12]. Next, the C. Moving Average Convergence Divergence (MACD)
indicators that will be used to design the investment strategy The MACD is a basic difference between two simple moving
are presented. averages, one with period 𝑛1 and another with period 𝑛2 where
the first average is expected to be more short-term and the
second long-term average, ie 𝑛1 <𝑛2 [15]. To calculate the
A. Simple Moving Average (SMA) MACD, equation 3 is applied.
The simple moving average is the indicator used in the MACD (𝑛1 , 𝑛2 ) = SMA (𝑛1 ) – SMA (𝑛2 ) [3]
technical analysis, this indicator helps to smooth the strong or
random fluctuations that the price makes. It is an indicator that The interpretation of this indicator is that the higher MACD,
follows the trend because it is based solely on past price data. the price or information being analyzed has risen more strongly
It is calculated as equation 1 [13]. for the last 𝑛1 periods compared to the last 𝑛2 periods.
1
Otherwise, the lower the MACD, indicates that the price or
𝑆𝑀𝐴𝑡,𝑛 = ∑𝑡𝑖=𝑡−𝑛+1 𝑃𝑖 [1] information of interest has decreased more strongly in the last
𝑛
𝑛1 periods compared to the last 𝑛2 [15]. Most analysts use the
11019
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 13 (2018) pp. 11018-11024
© Research India Publications. http://www.ripublication.com
means of periods 12 and 26 because these values include daily moving average, and two lines, upper (upperband) and inferior
and weekly values [10]. (lowerband), these outer lines are calculated as a variation of
the center line based on the ATR (Average True Range).
The MACD indicator searches for convergences and
Because the midband is an exponential moving average, the
divergences by means of moving averages. The convergences
Keltner channel is a trend indicator and being related to the
are movements that the indicator has in the same sense as the
ATR, the width of the bands will give an indication of the
price has, on the other hand, the divergences occur when a
volatility of the market, the wider the channel, market is volatile
significant movement of the price in one direction is not
[10].
represented in the same way and in the same sense in the
indicator [12]. Equations 4, 5 and 6 shows how the Keltner channel is
calculated.
There are two types of divergences, regular divergences and
hidden divergences. The regular divergences give a signal of a Midband = EMA (𝑛1 ) [4]
possible change of trend, for example, in an uptrend the
Upperband = EMA (𝑛1 ) + (k * ATR (𝑛2 )) [5]
divergence occurs when the price is making increasing
minimums, but the indicator performs increasingly smaller Lowerband = EMA (𝑛1 ) - (k * ATR (𝑛2 )) [6]
minimums. This will be the signal for a possible downtrend
change. On the other hand, the hidden divergences give a
confirmation signal of the current trend, for example, in a EMA (𝑛1 ) is an exponential average of 𝑛1 periods, ATR (𝑛2 ) is
downtrend, the price makes ever smaller and the indicator the average range of 𝑛2 periods; and k is a constant.
shows a higher maximum [12].
Figure 3 is an example of how the graph will be in which trades
In the lower part of figure 2 the MACD indicator is shown, will be analyzed.
while the upper part represents the price action of a certain
value in the stock market. At the beginning a regular divergence
is observed that changes the direction of the bearish trend, the
price makes lower minimums but the MACD performs higher
minimums. For the second part, the same regular divergence
occurs, but changing the direction of an uptrend, the price is
making higher highs but the MACD has lower maximums.
11020
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 13 (2018) pp. 11018-11024
© Research India Publications. http://www.ripublication.com
11021
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 13 (2018) pp. 11018-11024
© Research India Publications. http://www.ripublication.com
11022
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 13 (2018) pp. 11018-11024
© Research India Publications. http://www.ripublication.com
11023
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 13 (2018) pp. 11018-11024
© Research India Publications. http://www.ripublication.com
11024