| Literature DB >> 25097891 |
Shangkun Deng1, Akito Sakurai1.
Abstract
Currency trading is an important area for individual investors, government policy decisions, and organization investments. In this study, we propose a hybrid approach referred to as MKL-DE, which combines multiple kernel learning (MKL) with differential evolution (DE) for trading a currency pair. MKL is used to learn a model that predicts changes in the target currency pair, whereas DE is used to generate the buy and sell signals for the target currency pair based on the relative strength index (RSI), while it is also combined with MKL as a trading signal. The new hybrid implementation is applied to EUR/USD trading, which is the most traded foreign exchange (FX) currency pair. MKL is essential for utilizing information from multiple information sources and DE is essential for formulating a trading rule based on a mixture of discrete structures and continuous parameters. Initially, the prediction model optimized by MKL predicts the returns based on a technical indicator called the moving average convergence and divergence. Next, a combined trading signal is optimized by DE using the inputs from the prediction model and technical indicator RSI obtained from multiple timeframes. The experimental results showed that trading using the prediction learned by MKL yielded consistent profits.Entities:
Mesh:
Year: 2014 PMID: 25097891 PMCID: PMC4109363 DOI: 10.1155/2014/914641
Source DB: PubMed Journal: ScientificWorldJournal ISSN: 1537-744X
Figure 1Example showing the relative strength index values from multiple timeframes.
Figure 2Structure of the proposed method.
Features for each kernel.
| No. | Feature |
|---|---|
| 1 | MACD-value at time |
| 2 | MACD-signal at time |
| 3 | MACD-value at time ( |
| 4 | MACD-signal at time ( |
| 5 | MACD-value at time ( |
| 6 | MACD-signal at time ( |
| 7 | MACD-value at time ( |
| 8 | MACD-signal at time ( |
| 9 | MACD-value at time ( |
| 10 | MACD-signal at time ( |
| 11 | MACD-value at time ( |
| 12 | MACD-signal at time ( |
| 13 | MACD-value at time ( |
| 14 | MACD-signal at time ( |
| 15 | MACD-value at time ( |
| 16 | MACD-signal at time ( |
Output labels for MKL up-trend and down-trend classifiers.
| MKL classifier | MKL-trend signal | Conditions |
|---|---|---|
| MKL-up trend | MKL-up = +1 | If the actual change rate is greater than the upward trend threshold value |
| MKL-up = −1 | If the actual change rate is less than the upward trend threshold value | |
|
| ||
| MKL-down trend | MKL-down = +1 | If the actual change rate is less than the downward trend threshold value |
| MKL-down = −1 | If the actual change rate is greater than the downward trend threshold value | |
Conditions for issuing the MKL signal.
| No | Combined MKL signal | Conditions |
|---|---|---|
| 1 | No trade | MKL-up = 1 and MKL-down = 1 |
| 2 | No trade | MKL-up = −1 and MKL-down = −1 |
| 3 | Buy | MKL-up = 1 and MKL-down = −1 |
| 4 | Sell | MKL-up = −1 and MKL-down = 1 |
Conditions that need to be satisfied before issuing the RSI signal.
| No | Multiple RSI signal (SignalRSIs) | Conditions |
|---|---|---|
| 1 | Buy | ValueRSIs < buy threshold |
| 2 | Sell | ValueRSIs > sell threshold |
| 3 | No trade | otherwise |
Conditions that need to be satisfied before issuing the trading signal.
|
Trading signal | Conditions | |
|---|---|---|
| Combined MKL signal | Multiple RSI signal | |
| Buy | Buy | No trade |
| Sell | Sell | No trade |
| No trade | No trade | No trade |
| Sell | Any (buy, sell, or no trade) | Sell |
| Buy | Any (buy, sell, or no trade) | Buy |
DE parameter vector design.
| No | Value | Description |
|---|---|---|
| 1 | 3 to 10 | parameter for 1-hour RSI |
| 2 | 3 to 10 | parameter for 2-hour RSI |
| 3 | 3 to 10 | parameter for 30-min RSI |
| 4 | 0 to 2 | buy threshold |
| 5 | 0 to 2 | sell threshold |
| 6 | 0 to 1 | weight value for 1-hour RSI |
| 7 | 0 to 1 | weight value for 2-hour RSI |
| 8 | 0 to 1 | weight value for 30-min RSI |
Three datasets used for training and testing.
| Dataset | MKL training | MKL testing | MKL-DE training | MKL-DE testing |
|---|---|---|---|---|
| Dataset 1 (2008) | Jan. to Jun. | Jul. to Dec. | Jul. to Sep. | Oct. to Dec. |
| Dataset 2 (2009) | Jan. to Jun. | Jul. to Dec. | Jul. to Sep. | Oct. to Dec. |
| Dataset 3 (2010) | Jan. to Jun. | Jul. to Dec. | Jul. to Sep. | Oct. to Dec. |
Trading and testing periods for MKL and DE.
| Period | Process | Length of period |
|---|---|---|
| 1 | MKL learning | 3000 trading hours (around 6 months) |
| 2 | MKL testing (prediction) | 3000 trading hours (around 6 months) |
| 2-1 | MKL-DE training | 1500 trading hours (around 3 months) |
| 2-2 | MKL-DE testing (trading) | 1500 trading hours (around 3 months) |
List of the methods tested.
| Method | Description |
|---|---|
| GA-s | Trade based on the trading rules optimized by GA, with one RSI input |
| GA-m | Trade based on the trading rules optimization by GA, with three RSI input |
| Buy and hold | Buy and hold until the end point of a period |
| Sell and hold | Sell and hold until the end point of a period |
| SVM-s | Trade based on SVM prediction, with one FX pair input |
| SVM-m | Trade based on SVM prediction, with three FX pairs input |
| MKL-m | Trade based on MKL prediction, with three FX pairs input |
| MKL-m-t | Trade based on SignalMKL |
| DE-only | Trade based on SignalRSIs (parameters are optimized by DE) |
| MKL-m-t-DE | Trade based on Signaltrading |
Returns with the methods tested (The numbers right to ± is the standard deviation).
| Method | Dataset 1 (2008) | Dataset 2 (2009) | Dataset 3 (2010) | Average returns |
|---|---|---|---|---|
| GA-s | 0.0068 ± 0.0230 | −0.0454 ± 0.0143 | −0.0284 ± 0.0569 | −0.0223 |
| GA-m | 0.0098 ± 0.0991 | −0.0326 ± 0.0286 | 0.0087 ± 0.0241 | −0.0046 |
| Buy and hold | −0.0510 | −0.0426 | −0.0229 | −0.0388 |
| Sell and hold | 0.0510 | 0.0426 | 0.0229 | 0.0388 |
| SVM-s | −0.2039 | −0.0225 | −0.0559 | −0.0941 |
| SVM-m | −0.0397 | −0.0324 | −0.0299 | −0.0340 |
| MKL-m | −0.1932 | −0.0103 | 0.0479 | −0.0518 |
| MKL-m-t | 0.0216 | 0.0150 | 0.0048 | 0.0138 |
| DE-only | 0.0035 ± 0.0991 | −0.0318 ± 0.0541 | 0.0082 ± 0.0131 | −0.0201 |
| MKL-m-t-DE | 0.0673 ± 0.0343 | 0.0471 ± 0.0362 | 0.0352 ± 0.0215 | 0.0498 |
Sharpe ratios for the baseline, benchmark, and proposed methods.
| Method | Average return | Standard deviation | Sharpe ratio |
|---|---|---|---|
| GA-s | −0.0223 | 0.0242 | −0.5025 |
| GA-m | −0.0046 | 0.0266 | −1.1177 |
| Buy and Hold | −0.0388 | 0.0144 | −3.2152 |
| Sell and Hold | 0.0388 | 0.0144 | 2.1736 |
| SVM-s | −0.0941 | 0.0965 | −1.0528 |
| SVM-m | −0.0340 | 0.0050 | −8.3000 |
| MKL-m | −0.0518 | 0.1258 | −0.4713 |
| MKL-m-t | 0.0138 | 0.0084 | 0.7500 |
| DE-only | −0.0201 | 0.0219 | −1.2602 |
| MKL-m-t-DE | 0.0498 | 0.0162 | 2.6111 |