Professional Documents
Culture Documents
An Automated Trading System With Multi-Indicator Fusion Based On D-S Evidence Theory in Forex Market
An Automated Trading System With Multi-Indicator Fusion Based On D-S Evidence Theory in Forex Market
Authorized licensed use limited to: National University of Singapore. Downloaded on June 30,2021 at 00:03:36 UTC from IEEE Xplore. Restrictions apply.
reason is that some evidence support the combinational use An exponential moving average (EMA), sometimes
of multi indicators.The phenomena of sympathetic vibra- also called an exponentially weighted moving average
tion of some indicators means that the more indicators in- (EWMA), applies weighting factors which decrease expo-
dicate the same direction of market movement at the same nentially. The weighting for each older data point decreases
time,the more reliable the corresponding trading signal is.In exponentially, giving much more importance to recent ob-
fact,many successful traders use multiple indicators to build servations while still not discarding older observations en-
their trading system. tirely.
This work is aimed at the fusion method of multi indic- The recursion formula of EMA(m) is represented as
tors based on D-S evidence theory.The basic scheme dia-
gram of this method is illustrated in Figure1. EMAn (P, m) = (1 − α) × EMAn−1 + α × Pn (4)
where EMAn denotes the EMA value of the nth bar
Pn denotes the applied price of the nth bar
α is a decay factor.
Let α be 2/(m + 1) ,where m is the number of periods for
calculation.
The Formula 4. can be rewritten as
Figure 1. Basic scheme diagram of multi- 2 2
indicator fusion based on D-S theory EMAn (P, m) = (1 − × EMAn−1 ) + × Pn
m+1 m+1
m−1 2
= × EMAn−1 + × Pn (5)
m+1 m+1
The structure of this paper is as follows.A brief
description of some common indicators including SMA and EMA are used to track the main trend by fil-
SMA,EMA,MACD,RSI and CCI is provided in Sec- tering the fluctuation.They are also the basis of many other
tion 2. Section 3 introduces D-S evidence theory.Based on indicators.
it,the fusion of multiple indicators is detailed in Section
4.Simulation experiment of corresponding trading strategy 2.2. MACD
test using historical data on Euro vs. US dollar is to validate
the fusion method and the result is provided in Section 5. MACD is short for Moving Average Convergence Diver-
Finally,Section 6 gives the conclusion. gence. Gerald Appel[2] introduced this indicator in 1979.
MACD has a set of two lines of EMA with different pe-
2. Description of Common Indicators riod that cross each other either low to high or high to low
as trend changes. It indicates the correlation between two
2.1. SMA and EMA price moving averages.A typical MACD is defined by
240
Authorized licensed use limited to: National University of Singapore. Downloaded on June 30,2021 at 00:03:36 UTC from IEEE Xplore. Restrictions apply.
Where U is the average number of positive price changes (H1 , H2 , ..., Hn).A basic probability assignment (BPA) is a
during m periods; D is the average number of negative price function m : 2Θ → [0, 1],such as
changes during m periods.
RSI with its scale of 0-100 indicates the overbought zone m(Ø) = 0; 0 ≤ m(A) ≤ 1; m(A) = 1
above 70 and the oversold zone below 30.The trading rules A⊆Θ
241
Authorized licensed use limited to: National University of Singapore. Downloaded on June 30,2021 at 00:03:36 UTC from IEEE Xplore. Restrictions apply.
4. Multi-Indicator Fusion Based on
D-S evidence Theory
242
Authorized licensed use limited to: National University of Singapore. Downloaded on June 30,2021 at 00:03:36 UTC from IEEE Xplore. Restrictions apply.
Table 1. Trading Rule Table Table 3. Backtesting Resuslt
conditions actions indicator signal number correct signal annual return(%)
T ∈ [Bel(B) Pl(B)] open a long position MACD 73 47 533(5.33%)
and Pl(B) − Bel(B) ≤ U or hold the long position RSI 196 135 -961(-9.61%)
T ∈ [Bel(S ) Pl(S )] open a short position CCI 175 126 718(7.18%)
and Pl(B) − Bel(B) ≤ U or hold the short position Fused 32 25 1837(18.4%))
Pl(B) < T close the long position Indicator
and Pl(B) − Bel(B) ≥ U or keep the neutral position
Pl(S ) < T close the short position
and Pl(S ) − Bel(S ) ≥ U or keep the neutral position 6. Concluding Remark and Future work
otherwise keep the neutral position
An automated trading system using multiple indicators
fusion based on D-S evidence theory has been described in
Table 2. Table of Test Information this paper.It’s just a attempt to apply fusion theory to trad-
initial deposit: $10000 ing area.Backtesting result on historical data shows that the
currency pair: Euro vs US dollar fused indicator can produce more reliable signal and return
transaction cost: 2 pips spread than single indicator.But the parameter set of the fused indi-
time range: 2008.01.02 - 2008.12.31 cator mainly depend on expert experience which can’t pro-
time frame(sample period): 1 hour duce stable and consistent return.The future work will be
ratio of leverage: 1:1(without leverage) aimed at the self regulation of the parameter.
test platform: Matlab and Meta Trader
trading rule:refer to Table 1.
References
f3S can be written by [1] D.R.Lambert. Commodity channel index: Tool for trading
cyclic trends. Commodities Magazine, 1:120–122.
1 [2] G.Appel. The Moving Average Convergence-Divergence
m3 (S ) = f3S (x) = (18)
1+ e−0.2(x−100) Method. Signalert, Great Neck, NY, 1979.
[3] G.Shafer. A mathematical theory of evidence. Princeton
The combinational mass function is University Press, N.J., 1976.
[4] I.Kaastra and M.Boyd. Designing a neural network for fore-
m(B) = m1 (B) ⊕ m2 (B) ⊕ m3 (B) (19) casting financial and economic time series. Neurocomput-
m(S ) = m1 (S ) ⊕ m2 (S ) ⊕ m3 (S ) (20) ing, 10:215–236, 1996.
[5] J.C.Dempster. A real-time adaptive trading system using ge-
The value of m(B) and m(S) can be calculated refer- netic programming. Quantitative Finance, 1:397–413, 2001.
ring to Formula 12. The belief interval [Bel(B) Pl(B)] and [6] J.W.Wilder. New concepts in technical trading systems.
[Bel(S ) Pl(S )] can be also derived referring to Formula 10 Commodities Magazine, 10:215–236, 1978.
and 11. [7] L.Harris. Trading and Exchanges Market Microstructure for
Practitioners. Oxford University Press, London, 2003.
[8] M.Rosenberg. Currency Forecasting:A Guide To Funda-
5. Trading Strategy Backtesting mental and Technical Models of Exchange Rate Determina-
tion. Irwin Publishing, London, 1996.
In order to generate reliable trading signal based on be- [9] Murphy.J. Technical Analysis of the Financial Markets:A
Comprehensive Guide to Trading Methods and Applica-
lief interval.Two thresholds are introduced.One is trigger
tions. Prentice Hall Press, N.Y., 1999.
threshold -T ,the other is uncertainty threshold -U.The cor- [10] Y.G.Wu and K.Liu. On the evidence inference theory. IN-
responding trading rule is specified in the Table 1. FORMATION SCIENCES, 89:245–260.
Trading strategy backtesting aims at the Forex market.
Due to the high liquidity,low transaction cost and unmanip-
ulability,Euro vs US dollar is chosen to be the candidate.
The inforamtion of the strategy test are listed in Table 2.
The backtestting result is illustrated in Table 3. The re-
sult shows the fused indicator has a good performance with
the 37% annual return in 2008s. Although the number of
trading signal is less than any of three other indicator,the
percentage of correct signal is rather high.
243
Authorized licensed use limited to: National University of Singapore. Downloaded on June 30,2021 at 00:03:36 UTC from IEEE Xplore. Restrictions apply.